mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +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
|
/// Sign out user
|
||||||
Future<void> signOut() async {
|
Future<void> signOut() async {
|
||||||
|
await APIRequest.withLogin("account/logout").exec();
|
||||||
|
|
||||||
await (await PreferencesHelper.getInstance()).setLoginToken(null);
|
await (await PreferencesHelper.getInstance()).setLoginToken(null);
|
||||||
_currentUserID = 0;
|
_currentUserID = 0;
|
||||||
|
|
||||||
// Close current web socket
|
// Close current web socket
|
||||||
await APIRequest.withLogin("account/logout").exec();
|
|
||||||
WebSocketHelper.close();
|
WebSocketHelper.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user