TF-2187 Handle click system back button to back to Inbox
(cherry picked from commit 95dfd0eea6b64b8437b0ee35b489bd2660da8a71)
This commit is contained in:
@@ -1086,4 +1086,14 @@ class ThreadController extends BaseController with EmailActionController {
|
||||
|
||||
return DismissDirection.startToEnd;
|
||||
}
|
||||
|
||||
Future<bool> backButtonPressedCallbackAction(BuildContext context) async {
|
||||
if (PlatformInfo.isMobile &&
|
||||
mailboxDashBoardController.selectedMailbox.value?.isInbox == false) {
|
||||
mailboxDashBoardController.openDefaultMailbox();
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user