TF-1328 Add role archive to presentationMailbox

(cherry picked from commit 80ac65d013ec89738606768458c28c56d2fdba10)
This commit is contained in:
hieubt
2023-12-26 12:16:53 +07:00
committed by Dat H. Pham
parent 7b7a4a4028
commit 56b5a90bbe
2 changed files with 3 additions and 0 deletions
@@ -43,6 +43,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
bool get isOutbox => name?.name == PresentationMailbox.outboxRole || role == PresentationMailbox.roleOutbox;
bool get isArchive => role == PresentationMailbox.roleArchive;
bool get isSubscribedMailbox => isSubscribed != null && isSubscribed?.value == true;
bool get allowedToDisplayCountOfUnreadEmails => !(isTrash || isSpam || isDrafts || isTemplates || isSent) && countUnreadEmails > 0;