TF-688 Fix [Trash folder] the deleted folder should not count messages

This commit is contained in:
dab246
2022-08-01 15:03:45 +07:00
committed by Dat H. Pham
parent bdeefcf55f
commit e08429d42c
2 changed files with 15 additions and 0 deletions
@@ -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,