TF-1369 Fix [FCM] Unsupported operation Platform

This commit is contained in:
dab246
2023-01-03 15:13:30 +07:00
committed by Dat H. Pham
parent 9301c0350b
commit eec4418e60
4 changed files with 21 additions and 7 deletions
@@ -197,7 +197,11 @@ class MailboxDashBoardController extends ReloadableController {
_registerPendingFileInfo();
_getSessionCurrent();
_getAppVersion();
_handleOpenAppByNotification();
if (!BuildUtils.isWeb) {
_handleOpenAppByNotification();
} else {
dispatchRoute(DashboardRoutes.thread);
}
super.onReady();
}
@@ -370,7 +374,7 @@ class MailboxDashBoardController extends ReloadableController {
void _handleOpenAppByNotification() async {
log("_handleOpenAppByNotification(): isOpenAppByNotification: ${LocalNotificationManager.instance.isOpenAppByNotification}");
await LocalNotificationManager.instance.setUp();
if(LocalNotificationManager.instance.isOpenAppByNotification) {
if (LocalNotificationManager.instance.isOpenAppByNotification) {
final emailId = EmailId(Id(LocalNotificationManager.instance.getEmailIdFromNotification()!));
_getPresentationEmailFromEmailId(emailId);
} else {