mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-27 11:01:27 -04:00
Fix auto scrolling when receiving a message
This commit is contained in:
@@ -94,7 +94,7 @@ export const usePaginatedScrollingMessages = (
|
||||
setShowMessages(true)
|
||||
initialScroll.current = false
|
||||
}
|
||||
} else if (messages[0]?.userId === userId && messages[0]?.createdTime > Date.now() - 5000) {
|
||||
} else if (messages[0]?.createdTime > Date.now() - 5000) {
|
||||
debug('Sent message')
|
||||
// Sent a message, scroll to bottom
|
||||
outerDiv?.current?.scrollTo({
|
||||
|
||||
Reference in New Issue
Block a user