TF-1792 Hide banner empty trash when mailbox trash empty emails

(cherry picked from commit b0533ebb3e480b737a84085d6743eba1b8c897a6)
This commit is contained in:
dab246
2023-05-04 19:00:31 +07:00
committed by Dat Vu
parent 4d84ac176a
commit 94d066305a
8 changed files with 54 additions and 16 deletions
@@ -79,6 +79,8 @@ class PresentationMailbox with EquatableMixin {
return unreadEmails!.value.value <= 999 ? '${unreadEmails!.value.value}' : '999+';
}
int get countEmails => totalEmails?.value.value.toInt() ?? 0;
bool get isSpam => role == roleSpam;
bool get isTrash => role == roleTrash;