Hotfix Html attachment previewer on mobile (#3442)

This commit is contained in:
Dat Dang
2025-02-05 03:00:08 -08:00
committed by Dat H. Pham
parent fb3f4d10a5
commit 56955b2cfe
4 changed files with 102 additions and 46 deletions
@@ -276,7 +276,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
htmlContent: success.sanitizedHtmlContent,
mailToClicked: openMailToLink,
downloadAttachmentClicked: () {
downloadAttachmentForWeb(success.attachment);
if (currentContext == null || attachments.isEmpty) return;
handleDownloadAttachmentAction(currentContext!, success.attachment);
},
responsiveUtils: responsiveUtils,
));