From 32d4207367fd83673fc6029b36a750f72bbd93a0 Mon Sep 17 00:00:00 2001 From: Florent Azavant Date: Tue, 3 Dec 2024 10:29:58 +0100 Subject: [PATCH] TF-3189 added `subaddressingSupported` to `mailbox_constants` --- .../mailbox/presentation/mixin/mailbox_widget_mixin.dart | 3 ++- model/lib/mailbox/mailbox_constants.dart | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/features/mailbox/presentation/mixin/mailbox_widget_mixin.dart b/lib/features/mailbox/presentation/mixin/mailbox_widget_mixin.dart index 7279ec356b..f313f9d465 100644 --- a/lib/features/mailbox/presentation/mixin/mailbox_widget_mixin.dart +++ b/lib/features/mailbox/presentation/mixin/mailbox_widget_mixin.dart @@ -7,6 +7,7 @@ import 'package:get/get.dart'; import 'package:jmap_dart_client/jmap/account_id.dart'; import 'package:jmap_dart_client/jmap/core/capability/capability_identifier.dart'; import 'package:jmap_dart_client/jmap/core/session/session.dart'; +import 'package:model/mailbox/mailbox_constants.dart'; import 'package:model/model.dart'; import 'package:tmail_ui_user/features/base/base_mailbox_controller.dart'; import 'package:tmail_ui_user/features/base/widget/popup_item_widget.dart'; @@ -280,7 +281,7 @@ mixin MailboxWidgetMixin { return (session.getCapabilityProperties(accountId, CapabilityIdentifier.jmapTeamMailboxes) ?.props[0] as Map?) - ?['subaddressingSupported'] + ?[subaddressingSupported] ?? false; } diff --git a/model/lib/mailbox/mailbox_constants.dart b/model/lib/mailbox/mailbox_constants.dart index ae75773f98..dd945ace5c 100644 --- a/model/lib/mailbox/mailbox_constants.dart +++ b/model/lib/mailbox/mailbox_constants.dart @@ -1,2 +1,3 @@ const String anyoneIdentifier = 'anyone'; const String postingRight = 'p'; +const String subaddressingSupported = "subaddressingSupported";