@ -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<Object?>? parameters) {