π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix logout redirect to return to onboarding
Prateek Sunal8348fa6a25e2
diff --git a/mobile/packages/accounts/lib/services/user_service.dart b/mobile/packages/accounts/lib/services/user_service.dartindex e6246fd1a9..36553e56fa 100644--- a/mobile/packages/accounts/lib/services/user_service.dart+++ b/mobile/packages/accounts/lib/services/user_service.dart@@ -262,7 +262,7 @@ class UserService {final response = await _enteDio.post("/users/logout");if (response.statusCode == 200) {await _config.logout();- Navigator.of(context).popUntil((route) => route.isFirst);+ Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);} else {throw Exception("Log out action failed");}@@ -271,7 +271,7 @@ class UserService {// check if token is already invalidif (e is DioException && e.response?.statusCode == 401) {await _config.logout();- Navigator.of(context).popUntil((route) => route.isFirst);+ Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);return;}//This future is for waiting for the dialog from which logout() is called