diff --git a/lib/views/settings.dart b/lib/views/settings.dart index 33abf822..8c497a94 100644 --- a/lib/views/settings.dart +++ b/lib/views/settings.dart @@ -30,7 +30,7 @@ class _SettingsState extends State { Future profileFuture; dynamic profile; void logoutAction(BuildContext context) async { - await Navigator.of(context).pop(); + await Navigator.of(context).popUntil((r) => r.isFirst); MatrixState matrix = Matrix.of(context); await matrix.tryRequestWithErrorToast(matrix.client.logout()); matrix.clean();