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 5da09e3 commit eb561afCopy full SHA for eb561af
package/src/components/MessageList/MessageFlashList.tsx
@@ -457,7 +457,7 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
457
* If such a case arises, we scroll to bottom.
458
*/
459
const isMessageRemovedFromMessageList =
460
- messageListLengthAfterUpdate < messageListLengthBeforeUpdate.current;
+ messageListLengthBeforeUpdate.current - messageListLengthAfterUpdate === 1;
461
462
/**
463
* Scroll down when
@@ -484,6 +484,7 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
484
if (channel.countUnread() > 0) {
485
markRead();
486
}
487
+ setAutoScrollToRecent(false);
488
}, WAIT_FOR_SCROLL_TIMEOUT);
489
490
};
0 commit comments