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 48385b8 commit dd06224Copy full SHA for dd06224
package/src/components/MessageList/MessageList.tsx
@@ -637,8 +637,13 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
637
}
638
};
639
640
- if (!maximumMessageLimit && (threadList || isMessageRemovedFromMessageList)) {
641
- scrollToBottomIfNeeded();
+ if (threadList || isMessageRemovedFromMessageList) {
+ if (maximumMessageLimit) {
642
+ // pruning has happened, reset the trackers
643
+ resetPaginationTrackersRef.current();
644
+ } else {
645
+ scrollToBottomIfNeeded();
646
+ }
647
648
649
messageListLengthBeforeUpdate.current = messageListLengthAfterUpdate;
0 commit comments