mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
Fix logout in web
This commit is contained in:
parent
a611e2a141
commit
d4418392a3
@ -30,7 +30,7 @@ class _SettingsState extends State<Settings> {
|
|||||||
Future<dynamic> profileFuture;
|
Future<dynamic> profileFuture;
|
||||||
dynamic profile;
|
dynamic profile;
|
||||||
void logoutAction(BuildContext context) async {
|
void logoutAction(BuildContext context) async {
|
||||||
await Navigator.of(context).pop();
|
await Navigator.of(context).popUntil((r) => r.isFirst);
|
||||||
MatrixState matrix = Matrix.of(context);
|
MatrixState matrix = Matrix.of(context);
|
||||||
await matrix.tryRequestWithErrorToast(matrix.client.logout());
|
await matrix.tryRequestWithErrorToast(matrix.client.logout());
|
||||||
matrix.clean();
|
matrix.clean();
|
||||||
|
Loading…
Reference in New Issue
Block a user