This commit is contained in:
Saoud Rizwan
2024-10-05 06:03:33 -04:00
parent 4f803c70cb
commit 16fdaff8b3

View File

@@ -258,7 +258,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
didJustSendMessageRef.current = true
setTimeout(() => {
didJustSendMessageRef.current = false
}, 1_000)
}, 400)
}
},
[messages.length, claudeAsk]
@@ -496,7 +496,12 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
)
const handleRowHeightChange = useCallback(() => {
if (isAtBottomRef.current || didClickScrollToBottom || !didScrollUpRef.current) {
if (
isAtBottomRef.current ||
didClickScrollToBottom ||
!didScrollUpRef.current ||
didJustSendMessageRef.current
) {
scrollToBottomSmooth()
}
}, [scrollToBottomSmooth, didClickScrollToBottom])