Fix attachments cannot be export multiple times in mobile

This commit is contained in:
DatDang
2025-07-23 16:16:33 +07:00
committed by Dat H. Pham
parent 88764f9e0f
commit 6a6f0b3274
2 changed files with 55 additions and 49 deletions
@@ -447,10 +447,7 @@ class EmailView extends GetWidget<SingleEmailController> {
.disableAttachmentDraggableApp();
},
downloadAttachmentAction: (attachment) =>
controller.handleDownloadAttachmentAction(
context,
attachment,
),
controller.handleDownloadAttachmentAction(attachment),
viewAttachmentAction: (attachment) =>
controller.handleViewAttachmentAction(
context,
@@ -464,7 +461,6 @@ class EmailView extends GetWidget<SingleEmailController> {
controller.downloadAllButtonIsEnabled(),
onTapDownloadAllButton: () =>
controller.handleDownloadAllAttachmentsAction(
context,
'TwakeMail-${DateTime.now()}',
),
singleEmailControllerTag: tag,