fix(customer): Unable to select another email on iPad
This commit is contained in:
+5
-4
@@ -970,7 +970,11 @@ class MailboxDashBoardController extends ReloadableController
|
||||
|
||||
void openEmailDetailedView(PresentationEmail presentationEmail) {
|
||||
setSelectedEmail(presentationEmail);
|
||||
dispatchRoute(DashboardRoutes.threadDetailed);
|
||||
if (isEmailOpened) {
|
||||
dashboardRoute.refresh();
|
||||
} else {
|
||||
dispatchRoute(DashboardRoutes.threadDetailed);
|
||||
}
|
||||
if (PlatformInfo.isWeb && presentationEmail.routeWeb != null) {
|
||||
RouteUtils.replaceBrowserHistory(
|
||||
title: 'Email-${presentationEmail.id?.id.value ?? ''}',
|
||||
@@ -3393,9 +3397,6 @@ class MailboxDashBoardController extends ReloadableController
|
||||
|
||||
jmap.State? get currentEmailState => _currentEmailState;
|
||||
|
||||
bool get isThreadDetailedViewVisible =>
|
||||
dashboardRoute.value == DashboardRoutes.threadDetailed;
|
||||
|
||||
void _loadAppGrid() {
|
||||
if (PlatformInfo.isWeb && AppConfig.appGridDashboardAvailable) {
|
||||
appGridDashboardController.loadAppDashboardConfiguration();
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ extension RefreshThreadDetailOnSettingChanged on ThreadDetailManager {
|
||||
if (threadDetailWasEnabled != isThreadDetailEnabled) {
|
||||
threadDetailWasEnabled = isThreadDetailEnabled;
|
||||
if (PlatformInfo.isWeb &&
|
||||
mailboxDashBoardController.isThreadDetailedViewVisible) {
|
||||
mailboxDashBoardController.isEmailOpened) {
|
||||
mailboxDashBoardController.dispatchThreadDetailUIAction(
|
||||
ResyncThreadDetailWhenSettingChangedAction(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user