TF-3406 Add edit as new email feature
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -1205,6 +1205,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
||||
case EmailActionType.downloadMessageAsEML:
|
||||
_downloadMessageAsEML(presentationEmail);
|
||||
break;
|
||||
case EmailActionType.composeFromPresentationEmail:
|
||||
_composeFromPresentationEmail(presentationEmail);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1906,6 +1909,14 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
||||
downloadAttachmentForWeb(emlAttachment);
|
||||
}
|
||||
|
||||
void _composeFromPresentationEmail(PresentationEmail presentationEmail) {
|
||||
if (accountId == null || session == null) return;
|
||||
|
||||
mailboxDashBoardController.goToComposer(
|
||||
ComposerArguments.fromPresentationEmail(presentationEmail),
|
||||
);
|
||||
}
|
||||
|
||||
void handleDownloadAttachmentAction(BuildContext context, Attachment attachment) {
|
||||
if (PlatformInfo.isWeb) {
|
||||
downloadAttachmentForWeb(attachment);
|
||||
|
||||
Reference in New Issue
Block a user