fix: make full room transcripts autoscroll to the bottom when necessary

This commit is contained in:
Jeremy Kahn 2022-10-29 13:51:17 -05:00
parent a5a61b0cb0
commit 33f85fc8aa

View File

@ -43,7 +43,7 @@ export const ChatTranscript = ({
) {
boxEl.scrollTo({ top: scrollTopMax })
}
}, [messageLog.length, previousMessageLogLength])
}, [messageLog, previousMessageLogLength])
useEffect(() => {
setPreviousMessageLogLength(messageLog.length)