We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 762f4f3 commit a1596abCopy full SHA for a1596ab
src/components/MessageList/MessageList.tsx
@@ -479,7 +479,7 @@ const MessageListWithContext = <
479
* 2. Message was sent by me (current logged in user)
480
*/
481
const scrollToBottomIfNeeded = () => {
482
- if (!client || !channel) {
+ if (!client || !channel || messageList.length === 0) {
483
return;
484
}
485
0 commit comments