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