mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 12:58:51 +00:00
Fix bad sign out order
This commit is contained in:
parent
e5ed4fadda
commit
0ad8d5c393
@ -79,11 +79,12 @@ class AccountHelper {
|
||||
|
||||
/// Sign out user
|
||||
Future<void> signOut() async {
|
||||
await APIRequest.withLogin("account/logout").exec();
|
||||
|
||||
await (await PreferencesHelper.getInstance()).setLoginToken(null);
|
||||
_currentUserID = 0;
|
||||
|
||||
// Close current web socket
|
||||
await APIRequest.withLogin("account/logout").exec();
|
||||
WebSocketHelper.close();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user