|  |  |  | @ -94,6 +94,9 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { | 
		
	
		
			
				|  |  |  |  |         AppState().setchatUserDetails = userLoginResponse; | 
		
	
		
			
				|  |  |  |  |         Utils.saveStringFromPrefs("userLoginChatDetails", jsonEncode(userLoginResponse.response)); | 
		
	
		
			
				|  |  |  |  |         isUserOnline = true; | 
		
	
		
			
				|  |  |  |  |         if(Platform.isIOS){ | 
		
	
		
			
				|  |  |  |  |           AppState().setisUserOnline = true; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |       } else { | 
		
	
		
			
				|  |  |  |  |         AppState().setchatUserDetails = userLoginResponse; | 
		
	
		
			
				|  |  |  |  |         Utils.saveStringFromPrefs("userLoginChatDetails", "null"); | 
		
	
	
		
			
				
					|  |  |  | @ -102,11 +105,17 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { | 
		
	
		
			
				|  |  |  |  |         ); | 
		
	
		
			
				|  |  |  |  |         disableChatForThisUser = true; | 
		
	
		
			
				|  |  |  |  |         isUserOnline = false; | 
		
	
		
			
				|  |  |  |  |         if(Platform.isIOS){ | 
		
	
		
			
				|  |  |  |  |           AppState().setisUserOnline = false; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |         notifyListeners(); | 
		
	
		
			
				|  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |     } catch (e) { | 
		
	
		
			
				|  |  |  |  |       disableChatForThisUser = true; | 
		
	
		
			
				|  |  |  |  |       isUserOnline = false; | 
		
	
		
			
				|  |  |  |  |       if(Platform.isIOS){ | 
		
	
		
			
				|  |  |  |  |         AppState().setisUserOnline = false; | 
		
	
		
			
				|  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |       notifyListeners(); | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
	
		
			
				
					|  |  |  | 
 |