TF-3189 subaddressing features only shown if supported by the server
This commit is contained in:
committed by
Dat H. Pham
parent
f1ec1d7324
commit
019dbe6e03
@@ -201,10 +201,15 @@ class SearchMailboxView extends GetWidget<SearchMailboxController>
|
||||
controller.dashboardController.sessionCurrent,
|
||||
controller.dashboardController.accountId.value);
|
||||
|
||||
final bool subaddressingSupported = MailboxWidgetMixin.isSubaddressingSupported(
|
||||
controller.dashboardController.sessionCurrent,
|
||||
controller.dashboardController.accountId.value);
|
||||
|
||||
final contextMenuActions = listContextMenuItemAction(
|
||||
mailbox,
|
||||
controller.dashboardController.enableSpamReport,
|
||||
deletedMessageVaultSupported
|
||||
deletedMessageVaultSupported,
|
||||
subaddressingSupported,
|
||||
);
|
||||
return contextMenuActions
|
||||
.map((action) => _mailboxFocusedMenuItem(context, action, mailbox))
|
||||
@@ -262,10 +267,15 @@ class SearchMailboxView extends GetWidget<SearchMailboxController>
|
||||
controller.dashboardController.sessionCurrent,
|
||||
controller.dashboardController.accountId.value);
|
||||
|
||||
final bool subaddressingSupported = MailboxWidgetMixin.isSubaddressingSupported(
|
||||
controller.dashboardController.sessionCurrent,
|
||||
controller.dashboardController.accountId.value);
|
||||
|
||||
final contextMenuActions = listContextMenuItemAction(
|
||||
mailbox,
|
||||
controller.dashboardController.enableSpamReport,
|
||||
deletedMessageVaultSupported
|
||||
deletedMessageVaultSupported,
|
||||
subaddressingSupported,
|
||||
);
|
||||
|
||||
if (contextMenuActions.isEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user