diff --git a/lib/provider/chat_provider_model.dart b/lib/provider/chat_provider_model.dart index 0401400..b6583de 100644 --- a/lib/provider/chat_provider_model.dart +++ b/lib/provider/chat_provider_model.dart @@ -349,12 +349,12 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { } dynamic contain = searchedChats!.where((ChatUser element) => element.id == data.first.currentUserId); if (contain.isEmpty) { - print("Contain Was Emptyyyy"); searchedChats!.add( ChatUser(id: data.first.currentUserId, userName: data.first.currentUserName, unreadMessageCount: 0, isImageLoading: false, image: "", isImageLoaded: true), ); notifyListeners(); } + setMsgTune(); userChatHistory.insert(0, data.first); diff --git a/lib/ui/chat/chat_home_screen.dart b/lib/ui/chat/chat_home_screen.dart index 9d905eb..36bfe3e 100644 --- a/lib/ui/chat/chat_home_screen.dart +++ b/lib/ui/chat/chat_home_screen.dart @@ -54,9 +54,7 @@ class _ChatHomeScreenState extends State { body: Consumer( builder: (BuildContext context, ChatProviderModel m, Widget? child) { return m.isLoading - ? ChatHomeShimmer( - isDetailedScreen: false, - ) + ? ChatHomeShimmer(isDetailedScreen: false,) : Column( children: [ TextField(