When the user clicks 'Latest' while loadMoreMessages was in-flight, the scroll restoration (which maintains position when older messages are prepended) was undoing the explicit jump-to-bottom. Fix: clear scrollRestoreSnapshotRef and set isUserScrollingRef=false before anchorToBottom so the layout effect's restoration is skipped.
128 KiB
128 KiB