TF-2101 Handle restore deleted messages

(cherry picked from commit e675f98a6c85d9c4a90efc686e6ff72d23b4c678)
This commit is contained in:
hieubt
2023-12-21 16:56:06 +07:00
committed by Dat H. Pham
parent 4f6b500fa0
commit 71dc206ccd
30 changed files with 457 additions and 99 deletions
@@ -45,6 +45,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
bool get isArchive => role == PresentationMailbox.roleArchive;
bool get isRecovered => role == PresentationMailbox.roleRecovered;
bool get isSubscribedMailbox => isSubscribed != null && isSubscribed?.value == true;
bool get allowedToDisplayCountOfUnreadEmails => !(isTrash || isSpam || isDrafts || isTemplates || isSent) && countUnreadEmails > 0;