TF-474 Fix data in cache not show correctly after logout

This commit is contained in:
dab246
2022-04-12 11:41:14 +07:00
committed by Dat H. Pham
parent 04ef997eb4
commit b4fd1ce5e5
7 changed files with 50 additions and 10 deletions
@@ -1,4 +1,3 @@
import 'package:flutter/foundation.dart';
import 'package:get/get.dart';
import 'package:tmail_ui_user/features/caching/caching_manager.dart';
import 'package:tmail_ui_user/features/login/domain/usecases/delete_credential_interactor.dart';
@@ -41,8 +40,8 @@ class SessionController extends GetxController {
void _goToLogin() {
_deleteCredential();
if (!kIsWeb) _clearAllCache();
pushAndPop(AppRoutes.LOGIN);
_clearAllCache();
pushAndPopAll(AppRoutes.LOGIN);
}
void _goToMailboxDashBoard(GetSessionSuccess getSessionSuccess) {