TF-3670 Fix forwarding an email removes the attachments from the current email detail view

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-17 23:50:23 +07:00
committed by Dat H. Pham
parent 64c43698f4
commit 9d3a0e585e
@@ -1782,7 +1782,7 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
ComposerArguments.forwardEmail(
presentationEmail: presentationEmail,
content: currentEmailLoaded.value?.htmlContent ?? '',
attachments: attachments,
attachments: List.from(attachments),
inlineImages: currentEmailLoaded.value?.inlineImages ?? [],
messageId: currentEmailLoaded.value?.emailCurrent?.messageId,
references: currentEmailLoaded.value?.emailCurrent?.references,
@@ -2598,7 +2598,7 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
final viewEntireMessageRequest = ViewEntireMessageRequest(
userName: userName ?? UserName(''),
presentationEmail: presentationEmail,
attachments: attachments,
attachments: List.from(attachments),
emailContent: emailContent,
locale: Localizations.localeOf(context),
appLocalizations: appLocalizations,