fix: chat scrolling fix
This commit is contained in:
@@ -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
|
||||
/>
|
||||
<MessageInput />
|
||||
|
||||
Reference in New Issue
Block a user