File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed
mailbox_dashboard/presentation/controller
manage_account/presentation Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -2937,13 +2937,10 @@ class MailboxDashBoardController extends ReloadableController
2937
2937
log ('MailboxDashBoardController::_navigateToScreen: dashboardRoute: $dashboardRoute ' );
2938
2938
switch (dashboardRoute.value) {
2939
2939
case DashboardRoutes .threadDetailed:
2940
- if (PlatformInfo .isMobile) {
2941
- if (currentContext != null && canBack (currentContext! )) {
2942
- return false ;
2943
- } else {
2944
- clearSelectedEmail ();
2945
- return true ;
2946
- }
2940
+ if (PlatformInfo .isMobile &&
2941
+ currentContext != null &&
2942
+ canBack (currentContext! )) {
2943
+ return false ;
2947
2944
} else {
2948
2945
clearSelectedEmail ();
2949
2946
return true ;
@@ -3302,8 +3299,15 @@ class MailboxDashBoardController extends ReloadableController
3302
3299
}
3303
3300
3304
3301
Future <void > registerCozyPopState () async {
3305
- final isInsideCozy = await CozyConfigManager ().isInsideCozy;
3306
- if (! isInsideCozy) return ;
3302
+ if (! PlatformInfo .isWeb) return ;
3303
+
3304
+ try {
3305
+ final isInsideCozy = await CozyConfigManager ().isInsideCozy;
3306
+ if (! isInsideCozy) return ;
3307
+ } catch (e) {
3308
+ logError ('MailboxDashBoardController::registerCozyPopState::isInsideCozy:Exception = $e ' );
3309
+ return ;
3310
+ }
3307
3311
3308
3312
_popStateDebouncer = Debouncer (
3309
3313
const Duration (milliseconds: 100 ),
Original file line number Diff line number Diff line change @@ -411,8 +411,15 @@ class ManageAccountDashBoardController extends ReloadableController {
411
411
}
412
412
413
413
Future <void > registerCozyPopState () async {
414
- final isInsideCozy = await CozyConfigManager ().isInsideCozy;
415
- if (! isInsideCozy) return ;
414
+ if (! PlatformInfo .isWeb) return ;
415
+
416
+ try {
417
+ final isInsideCozy = await CozyConfigManager ().isInsideCozy;
418
+ if (! isInsideCozy) return ;
419
+ } catch (e) {
420
+ logError ('ManageAccountDashBoardController::registerCozyPopState::isInsideCozy:Exception = $e ' );
421
+ return ;
422
+ }
416
423
417
424
_popStateDebouncer = Debouncer (
418
425
const Duration (milliseconds: 100 ),
You can’t perform that action at this time.
0 commit comments