TF-1977 Close email view and scroll to position inbox when clicking on logo

(cherry picked from commit 843c703e80559ab7d6a9fa3a4562ae85c1426a1f)
This commit is contained in:
dab246
2023-08-29 15:42:15 +07:00
committed by Dat Vu
parent 53db04c4dd
commit fe310b666a
4 changed files with 40 additions and 13 deletions
@@ -2087,7 +2087,9 @@ class MailboxDashBoardController extends ReloadableController {
void redirectToInboxAction() {
log('MailboxDashBoardController::redirectToInboxAction:');
if (selectedMailbox.value?.role == PresentationMailbox.roleInbox) return;
if (dashboardRoute.value == DashboardRoutes.emailDetailed) {
dispatchEmailUIAction(CloseEmailDetailedViewAction());
}
final inboxId = getMailboxIdByRole(PresentationMailbox.roleInbox);
if (inboxId == null) return;