TF-4392 [Team Mailbox] Hide Recover deleted messages and Archive message in team mailbox

This commit is contained in:
dab246
2026-04-01 14:48:54 +07:00
committed by Dat H. Pham
parent a4bea6524b
commit 7cc9cd82fa
16 changed files with 165 additions and 529 deletions
@@ -40,4 +40,11 @@ class NotFoundTrashMailboxException extends AppBaseException {
@override
String get exceptionName => 'NotFoundTrashMailboxException';
}
}
class NotFoundEmailIdException extends AppBaseException {
NotFoundEmailIdException([super.message]);
@override
String get exceptionName => 'NotFoundEmailIdException';
}
@@ -87,20 +87,20 @@ mixin MailboxWidgetMixin {
return [
if (PlatformInfo.isWeb && mailbox.isSubscribedMailbox)
MailboxActions.openInNewTab,
if (mailbox.myRights?.mayCreateChild == true)
if (mailbox.myRights?.mayCreateChild != false)
MailboxActions.newSubfolder,
if (mailbox.countUnReadEmailsAsString.isNotEmpty)
MailboxActions.markAsRead,
if (mailbox.myRights?.mayRename == true)
if (mailbox.myRights?.mayRename != false)
MailboxActions.rename,
if (mailbox.isTeamMailboxes)
if (mailbox.isSubscribedMailbox)
MailboxActions.disableMailbox
else
MailboxActions.enableMailbox,
if (mailbox.isTrash && mailbox.myRights?.mayRemoveItems == true)
if (mailbox.isTrash && mailbox.myRights?.mayRemoveItems != false)
MailboxActions.emptyTrash,
if (mailbox.myRights?.mayDelete == true)
if (mailbox.myRights?.mayDelete != false)
MailboxActions.delete,
];
}