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