|
|
|
@ -154,9 +154,6 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
|
|
|
|
({String? connectionId}) {},
|
|
|
|
({String? connectionId}) {},
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (hubConnection.state != HubConnectionState.Connected) {
|
|
|
|
if (hubConnection.state != HubConnectionState.Connected) {
|
|
|
|
if (kDebugMode) {
|
|
|
|
|
|
|
|
print("================= Connection Established ==========================");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
await hubConnection.start();
|
|
|
|
await hubConnection.start();
|
|
|
|
hubConnection.on("OnUpdateUserStatusAsync", changeStatus);
|
|
|
|
hubConnection.on("OnUpdateUserStatusAsync", changeStatus);
|
|
|
|
hubConnection.on("OnDeliveredChatUserAsync", onMsgReceived);
|
|
|
|
hubConnection.on("OnDeliveredChatUserAsync", onMsgReceived);
|
|
|
|
@ -167,7 +164,6 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
|
|
|
|
hubConnection.on("OnGetUserChatHistoryNotDeliveredAsync", chatNotDelivered);
|
|
|
|
hubConnection.on("OnGetUserChatHistoryNotDeliveredAsync", chatNotDelivered);
|
|
|
|
hubConnection.on("OnUpdateUserChatHistoryStatusAsync", updateUserChatStatus);
|
|
|
|
hubConnection.on("OnUpdateUserChatHistoryStatusAsync", updateUserChatStatus);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// notifyListeners();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void updateUserChatStatus(List<Object?>? args) {
|
|
|
|
void updateUserChatStatus(List<Object?>? args) {
|
|
|
|
|