Fav Users Images Fix

merge-requests/100/head
Aamir Muhammad 3 years ago
parent feb5c5071c
commit 2a39ee9ddc

@ -38,23 +38,23 @@ class _ChatHomeState extends State<ChatHome> {
data.clearAll(); data.clearAll();
} }
void fetchAgain() { // void fetchAgain() {
print("Fetch Triggered"); // print("Fetch Triggered");
if (chatHubConnection.state != HubConnectionState.Connected) { // if (chatHubConnection.state != HubConnectionState.Connected) {
data.getUserAutoLoginToken().whenComplete(() async { // data.getUserAutoLoginToken().whenComplete(() async {
await data.buildHubConnection(); // await data.buildHubConnection();
data.getUserRecentChats(); // data.getUserRecentChats();
}); // });
return; // return;
} // }
if (data.searchedChats == null || data.searchedChats!.isEmpty) { // if (data.searchedChats == null || data.searchedChats!.isEmpty) {
data.getUserRecentChats(); // data.getUserRecentChats();
} // }
} // }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
fetchAgain(); // fetchAgain();
return Scaffold( return Scaffold(
backgroundColor: MyColors.white, backgroundColor: MyColors.white,
appBar: AppBarWidget(context, title: LocaleKeys.chat.tr(), showHomeButton: true), appBar: AppBarWidget(context, title: LocaleKeys.chat.tr(), showHomeButton: true),

Loading…
Cancel
Save