TF-4392 [Team Mailbox] Delete emails within the team mailbox trash

This commit is contained in:
dab246
2026-03-26 14:13:33 +07:00
committed by Dat H. Pham
parent 1c1b16ded1
commit 405501bd40
@@ -40,7 +40,15 @@ extension PresentationMailboxExtension on PresentationMailbox {
bool get isVirtualFolder => isFavorite || isActionRequired;
bool get isTrash => role == PresentationMailbox.roleTrash;
bool get isTrash {
if (isPersonal) {
return role == PresentationMailbox.roleTrash;
} else {
return isChildOfTeamMailboxes &&
name?.name.toLowerCase() ==
PresentationMailbox.trashRole.toLowerCase();
}
}
bool get isDrafts => role == PresentationMailbox.roleDrafts;