mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 00:05:29 +00:00
fix(cnb): delete email and state cache before execute login
This commit is contained in:
1 parent
520cd6c82f
commit
8c1ed4b262
1 file changed
+5
-1
@@ -237,9 +237,13 @@ class LoginController extends ReloadableController {
|
||||
}
|
||||
|
||||
@override
|
||||
void handleReloaded(Session session) {
|
||||
Future<void> handleReloaded(Session session) async {
|
||||
SmartDialog.dismiss();
|
||||
|
||||
if (PlatformInfo.isWeb && AppConfig.isForceEmailQueryEnabled) {
|
||||
await cachingManager.clearAllEmailAndStateCache();
|
||||
}
|
||||
|
||||
popAndPush(
|
||||
RouteUtils.generateNavigationRoute(AppRoutes.dashboard),
|
||||
arguments: session,
|
||||
|
||||
Reference in new issue
Block a user