TF-4392 [Team Mailbox] Hide Recover deleted messages and Archive message in team mailbox
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user