TF-3758 Support system back button close left mailbox menu when it is opened on web responsive

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-11 10:28:10 +07:00
committed by Dat H. Pham
parent 6acb1627e2
commit 0a8d1b2895
@@ -2902,12 +2902,18 @@ class MailboxDashBoardController extends ReloadableController
openDefaultMailbox();
return true;
}
}
if (searchController.isSearchEmailRunning) {
} else if (searchController.isSearchEmailRunning) {
dispatchMailboxUIAction(SystemBackToInboxAction());
return true;
} else {
if (selectedMailbox.value?.isInbox == true) {
if (PlatformInfo.isWeb &&
currentContext != null &&
!responsiveUtils.isDesktop(currentContext!) &&
isDrawerOpen
) {
closeMailboxMenuDrawer();
return true;
} else if (selectedMailbox.value?.isInbox == true) {
pushAndPopAll(AppRoutes.home);
return true;
} else {