Skip to content

Commit 84cfe17

Browse files
committed
Revert "fix: remove redundant check"
This reverts commit 8dd98f7.
1 parent 8dd98f7 commit 84cfe17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package/src/components/MessageList/MessageFlashList.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,9 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
492492
setAutoscrollToRecent(false);
493493
setScrollToBottomButtonVisible(true);
494494
return;
495+
} else {
496+
setAutoscrollToRecent(true);
495497
}
496-
497-
setAutoscrollToRecent(true);
498-
499498
const latestNonCurrentMessageBeforeUpdate = latestNonCurrentMessageBeforeUpdateRef.current;
500499
latestNonCurrentMessageBeforeUpdateRef.current = undefined;
501500

0 commit comments

Comments
 (0)