fix(cnb): Cannot clear email state cache when reload page
(cherry picked from commit a901206a7879d2f670d29be52ab4a297f1eb6c72)
This commit is contained in:
+4
-1
@@ -612,7 +612,10 @@ class MailboxDashBoardController extends ReloadableController
|
||||
Future<void> onBeforeUnloadBrowserListener(html.Event event) async {
|
||||
log('MailboxDashBoardController::onBeforeUnloadBrowserListener:event = ${event.runtimeType} | hasComposer = ${twakeAppManager.hasComposer} | isExecutingBeforeReconnect = ${twakeAppManager.isExecutingBeforeReconnect}');
|
||||
if (PlatformInfo.isWeb) {
|
||||
await cachingManager.clearAllEmailAndStateCache();
|
||||
await cachingManager.clearAllEmailAndStateCache(
|
||||
accountId: accountId.value,
|
||||
userName: sessionCurrent?.username,
|
||||
);
|
||||
}
|
||||
|
||||
if (event is html.BeforeUnloadEvent &&
|
||||
|
||||
Reference in New Issue
Block a user