diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index 1fed7d5..feb1b51 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -17,7 +17,7 @@ const Chat = () => { const onFollowOutputHandler = useCallback( (atBottom: boolean) => { - if (atBottom || lastMessage?.crmSender) { + if (atBottom) { return "auto"; } else { return false; @@ -75,7 +75,7 @@ const Chat = () => { itemContent={itemContent} startReached={fetchMoreMessages} height={"100%"} - increaseViewportBy={100} + increaseViewportBy={200} alignToBottom />