diff --git a/lib/api/chat/chat_provider_model.dart b/lib/api/chat/chat_provider_model.dart index d033eba..00691ec 100644 --- a/lib/api/chat/chat_provider_model.dart +++ b/lib/api/chat/chat_provider_model.dart @@ -260,9 +260,8 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { data.first.currentUserName = temp.first.targetUserName; } userChatHistory.add(data.first); - scrollToBottom(); notifyListeners(); - // if (isChatScreenActive) scrollDown(); + if (isChatScreenActive) scrollToBottom(); } void onUserTyping(List? parameters) {