|  |  |  | @ -60,17 +60,6 @@ class ChatApiClient { | 
		
	
		
			
				|  |  |  |  |         json.decode(response.body), | 
		
	
		
			
				|  |  |  |  |       ); | 
		
	
		
			
				|  |  |  |  |     } catch (e) { | 
		
	
		
			
				|  |  |  |  |       // if (e.message == "api_common_unauthorized") { | 
		
	
		
			
				|  |  |  |  |       //   user.UserAutoLoginModel userLoginResponse = await ChatApiClient().getUserLoginToken(); | 
		
	
		
			
				|  |  |  |  |       //   if (userLoginResponse.response != null) { | 
		
	
		
			
				|  |  |  |  |       //     AppState().setchatUserDetails = userLoginResponse; | 
		
	
		
			
				|  |  |  |  |       //     getRecentChats(); | 
		
	
		
			
				|  |  |  |  |       //   } else { | 
		
	
		
			
				|  |  |  |  |       //     Utils.showToast( | 
		
	
		
			
				|  |  |  |  |       //       userLoginResponse.errorResponses!.first.fieldName.toString() + " Erorr", | 
		
	
		
			
				|  |  |  |  |       //     ); | 
		
	
		
			
				|  |  |  |  |       //   } | 
		
	
		
			
				|  |  |  |  |       // } | 
		
	
		
			
				|  |  |  |  |       throw e; | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
	
		
			
				
					|  |  |  | @ -97,16 +86,6 @@ class ChatApiClient { | 
		
	
		
			
				|  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |       return response; | 
		
	
		
			
				|  |  |  |  |     } catch (e) { | 
		
	
		
			
				|  |  |  |  |       // e as APIException; | 
		
	
		
			
				|  |  |  |  |       // if (e.message == "api_common_unauthorized") { | 
		
	
		
			
				|  |  |  |  |       //   user.UserAutoLoginModel userLoginResponse = await ChatApiClient().getUserLoginToken(); | 
		
	
		
			
				|  |  |  |  |       //   if (userLoginResponse.response != null) { | 
		
	
		
			
				|  |  |  |  |       //     AppState().setchatUserDetails = userLoginResponse; | 
		
	
		
			
				|  |  |  |  |       //     getSingleUserChatHistory(senderUID: senderUID, receiverUID: receiverUID, loadMore: loadMore, paginationVal: paginationVal); | 
		
	
		
			
				|  |  |  |  |       //   } else { | 
		
	
		
			
				|  |  |  |  |       //     Utils.showToast(userLoginResponse.errorResponses!.first.fieldName.toString() + " Erorr"); | 
		
	
		
			
				|  |  |  |  |       //   } | 
		
	
		
			
				|  |  |  |  |       // } | 
		
	
		
			
				|  |  |  |  |       throw e; | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
	
		
			
				
					|  |  |  | @ -135,15 +114,6 @@ class ChatApiClient { | 
		
	
		
			
				|  |  |  |  |       return favoriteChatUser; | 
		
	
		
			
				|  |  |  |  |     } catch (e) { | 
		
	
		
			
				|  |  |  |  |       e as APIException; | 
		
	
		
			
				|  |  |  |  |       // if (e.message == "api_common_unauthorized") { | 
		
	
		
			
				|  |  |  |  |       //   user.UserAutoLoginModel userLoginResponse = await ChatApiClient().getUserLoginToken(); | 
		
	
		
			
				|  |  |  |  |       //   if (userLoginResponse.response != null) { | 
		
	
		
			
				|  |  |  |  |       //     AppState().setchatUserDetails = userLoginResponse; | 
		
	
		
			
				|  |  |  |  |       //     unFavUser(userID: userID, targetUserID: targetUserID); | 
		
	
		
			
				|  |  |  |  |       //   } else { | 
		
	
		
			
				|  |  |  |  |       //     Utils.showToast(userLoginResponse.errorResponses!.first.fieldName.toString() + " Erorr"); | 
		
	
		
			
				|  |  |  |  |       //   } | 
		
	
		
			
				|  |  |  |  |       // } | 
		
	
		
			
				|  |  |  |  |       throw e; | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
	
		
			
				
					|  |  |  | 
 |