TF-1831 Handle system back button to back to the INBOX
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 17a40a6162a1f4eb1390327662761d1a015d334a)
This commit is contained in:
+12
-1
@@ -2232,7 +2232,12 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
return true;
|
||||
case DashboardRoutes.thread:
|
||||
if (PlatformInfo.isMobile) {
|
||||
return false;
|
||||
if (selectedMailbox.value?.isInbox == true) {
|
||||
return false;
|
||||
} else {
|
||||
openDefaultMailbox();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (searchController.isSearchEmailRunning) {
|
||||
dispatchMailboxUIAction(SystemBackToInboxAction());
|
||||
@@ -2240,6 +2245,12 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
pushAndPopAll(AppRoutes.home);
|
||||
}
|
||||
return true;
|
||||
case DashboardRoutes.sendingQueue:
|
||||
if (PlatformInfo.isMobile) {
|
||||
openDefaultMailbox();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
case DashboardRoutes.searchEmail:
|
||||
dispatchAction(CloseSearchEmailViewAction());
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user