TF-3449 Update Mark as Important state when edit as new email
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -507,7 +507,7 @@ class EmailView extends GetWidget<SingleEmailController> {
|
||||
EmailActionType.archiveMessage,
|
||||
if (PlatformInfo.isWeb && PlatformInfo.isCanvasKit)
|
||||
EmailActionType.downloadMessageAsEML,
|
||||
EmailActionType.composeFromPresentationEmail,
|
||||
EmailActionType.editAsNewEmail,
|
||||
];
|
||||
|
||||
if (position == null) {
|
||||
|
||||
@@ -105,9 +105,9 @@ class ComposerArguments extends RouterArguments {
|
||||
presentationEmail: presentationEmail,
|
||||
);
|
||||
|
||||
factory ComposerArguments.fromPresentationEmail(PresentationEmail presentationEmail) =>
|
||||
factory ComposerArguments.editAsNewEmail(PresentationEmail presentationEmail) =>
|
||||
ComposerArguments(
|
||||
emailActionType: EmailActionType.composeFromPresentationEmail,
|
||||
emailActionType: EmailActionType.editAsNewEmail,
|
||||
presentationEmail: presentationEmail,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user