TF-3449 Update Mark as Important state when open draft email and reload page
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -634,6 +634,7 @@ class ComposerController extends BaseController
|
||||
emailId: arguments.presentationEmail!.id!,
|
||||
);
|
||||
_emailIdEditing = arguments.presentationEmail!.id!;
|
||||
isMarkAsImportant.value = arguments.presentationEmail!.isMarkAsImportant;
|
||||
break;
|
||||
case EmailActionType.editSendingEmail:
|
||||
_initEmailAddress(
|
||||
@@ -721,6 +722,7 @@ class ComposerController extends BaseController
|
||||
if (!PlatformInfo.isWeb) return;
|
||||
|
||||
screenDisplayMode.value = arguments.displayMode;
|
||||
isMarkAsImportant.value = arguments.isMarkAsImportant ?? false;
|
||||
|
||||
_initEmailAddress(
|
||||
presentationEmail: arguments.presentationEmail!,
|
||||
@@ -1316,6 +1318,7 @@ class ComposerController extends BaseController
|
||||
identity: identitySelected.value,
|
||||
attachments: uploadController.attachmentsUploaded,
|
||||
hasReadReceipt: hasRequestReadReceipt.value,
|
||||
isMarkAsImportant: isMarkAsImportant.value,
|
||||
);
|
||||
|
||||
return savedEmailDraft.hashCode;
|
||||
|
||||
@@ -13,6 +13,7 @@ class SavedEmailDraft with EquatableMixin {
|
||||
final List<Attachment> attachments;
|
||||
final Identity? identity;
|
||||
final bool hasReadReceipt;
|
||||
final bool isMarkAsImportant;
|
||||
|
||||
SavedEmailDraft({
|
||||
required this.content,
|
||||
@@ -24,6 +25,7 @@ class SavedEmailDraft with EquatableMixin {
|
||||
required this.attachments,
|
||||
required this.identity,
|
||||
required this.hasReadReceipt,
|
||||
this.isMarkAsImportant = false,
|
||||
});
|
||||
|
||||
factory SavedEmailDraft.empty() {
|
||||
@@ -51,6 +53,7 @@ class SavedEmailDraft with EquatableMixin {
|
||||
{3: replyToRecipients},
|
||||
attachments,
|
||||
identity,
|
||||
hasReadReceipt
|
||||
hasReadReceipt,
|
||||
isMarkAsImportant,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user