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:
+9
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user