TF-4075 Jump to attachments list position on mobile

(cherry picked from commit cd2ca1ec3c5b5160820823905d9f0183536b07e3)
This commit is contained in:
dab246
2025-10-07 01:25:19 +07:00
committed by Dat H. Pham
parent 3478e2aabc
commit 7057648b28
12 changed files with 112 additions and 25 deletions
@@ -432,7 +432,12 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
if (_currentEmailId == null || action.emailId != _currentEmailId) {
return;
}
jumpToAttachmentList();
jumpToAttachmentList(
emailId: _currentEmailId!,
countAttachments: action.countAttachments,
screenHeight: action.screenHeight,
isDisplayAllAttachments: action.isDisplayAllAttachments,
);
mailboxDashBoardController.clearEmailUIAction();
}
}));
@@ -1765,10 +1770,12 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
void showAllAttachmentsAction() {
isDisplayAllAttachments.value = true;
threadDetailController?.isDisplayAllAttachments = true;
}
void hideAllAttachmentsAction() {
isDisplayAllAttachments.value = false;
threadDetailController?.isDisplayAllAttachments = false;
}
void _unsubscribeEmail(BuildContext context, PresentationEmail presentationEmail) {