TF-3449 Update Mark as Important state when edit as new email

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-02-20 08:35:58 +07:00
committed by Dat H. Pham
parent 94b6814ab1
commit b6c160f57e
9 changed files with 18 additions and 17 deletions
@@ -1422,8 +1422,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
case EmailActionType.downloadMessageAsEML:
_downloadMessageAsEML(presentationEmail);
break;
case EmailActionType.composeFromPresentationEmail:
_composeFromPresentationEmail(presentationEmail);
case EmailActionType.editAsNewEmail:
_editAsNewEmail(presentationEmail);
break;
default:
break;
@@ -2145,11 +2145,11 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
downloadAttachmentForWeb(emlAttachment);
}
void _composeFromPresentationEmail(PresentationEmail presentationEmail) {
void _editAsNewEmail(PresentationEmail presentationEmail) {
if (accountId == null || session == null) return;
mailboxDashBoardController.goToComposer(
ComposerArguments.fromPresentationEmail(presentationEmail),
ComposerArguments.editAsNewEmail(presentationEmail),
);
}