Fix logout in web

This commit is contained in:
Christian Pauly 2020-01-03 12:37:59 +01:00
parent a611e2a141
commit d4418392a3

View file

@ -30,7 +30,7 @@ class _SettingsState extends State<Settings> {
Future<dynamic> 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();