TF-4274 Fix logic clear cache email in onBeforeUnloadBrowserListener
This commit is contained in:
+1
-1
@@ -620,7 +620,7 @@ class MailboxDashBoardController extends ReloadableController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PlatformInfo.isWeb) {
|
if (event is html.BeforeUnloadEvent) {
|
||||||
await cachingManager.clearAllEmailAndStateCache();
|
await cachingManager.clearAllEmailAndStateCache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class ManageAccountDashBoardController extends ReloadableController
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> onBeforeUnloadBrowserListener(html.Event event) async {
|
Future<void> onBeforeUnloadBrowserListener(html.Event event) async {
|
||||||
if (PlatformInfo.isWeb) {
|
if (event is html.BeforeUnloadEvent) {
|
||||||
await cachingManager.clearAllEmailAndStateCache();
|
await cachingManager.clearAllEmailAndStateCache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user