TF-688 Fix [Trash folder] the deleted folder should not count messages
This commit is contained in:
@@ -66,6 +66,18 @@ class PresentationMailbox with EquatableMixin {
|
||||
|
||||
bool get isDrafts => role == roleDrafts;
|
||||
|
||||
bool get isTemplates => role == roleTemplates;
|
||||
|
||||
bool get isSent => role == roleSent;
|
||||
|
||||
bool matchCountingRules() {
|
||||
if (isSpam || isTrash || isDrafts || isTemplates || isSent) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user