From 0db4a5a7cd3b88863e58c8d6c000b19bcc430d54 Mon Sep 17 00:00:00 2001 From: "Aamir.Muhammad" Date: Mon, 5 Dec 2022 14:38:57 +0300 Subject: [PATCH] Chat Fixes & User Chat Counter --- lib/ui/landing/dashboard_screen.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/ui/landing/dashboard_screen.dart b/lib/ui/landing/dashboard_screen.dart index 954b647..e1250b4 100644 --- a/lib/ui/landing/dashboard_screen.dart +++ b/lib/ui/landing/dashboard_screen.dart @@ -66,11 +66,10 @@ class _DashboardScreenState extends State { await hubConnection.start(); hubConnection.onreconnecting(({Exception? error}) { print("============== Reconnecting ======================"); - //if (hubConnection.state != HubConnectionState.Connected) { - data.getUserAutoLoginToken().whenComplete(() { - buildHubConnection(); - }); - //} + data.getUserAutoLoginToken().whenComplete(() { + buildHubConnection(); + data.notifyListeners(); + }); }); }