mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Fix bad sign out order
This commit is contained in:
		@@ -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();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user