|
|
|
|
@ -84,11 +84,10 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
|
|
|
|
|
bool disbaleChatForThisUser = false;
|
|
|
|
|
bool isCall = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
userLoginToken.UserAutoLoginModel userLoginData = userLoginToken.UserAutoLoginModel();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> getUserAutoLoginToken() async {
|
|
|
|
|
try {
|
|
|
|
|
userLoginToken.UserAutoLoginModel userLoginResponse = await ChatApiClient().getUserLoginToken();
|
|
|
|
|
if (userLoginResponse.response != null) {
|
|
|
|
|
AppState().setchatUserDetails = userLoginResponse;
|
|
|
|
|
@ -100,6 +99,10 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
|
|
|
|
|
disbaleChatForThisUser = true;
|
|
|
|
|
notifyListeners();
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
disbaleChatForThisUser = true;
|
|
|
|
|
notifyListeners();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<void> buildHubConnection({required BuildContext context, required ChatCallProvider ccProvider}) async {
|
|
|
|
|
|