Show chat info panel for empty chats (#10677)

This commit is contained in:
DS Boyce
2026-06-01 10:15:21 -07:00
committed by GitHub
parent bccca283b9
commit 0d38e2ab3f
@@ -240,7 +240,11 @@ export function MessagesList({
// Initial scroll to bottom — unconditional, not gated on isAtBottom. This is separated because contentInset
// can cause an early onScroll with a negative offset that sets isAtBottom to false before we get here.
if (!hasInitiallyScrolled.current && renderItems.length > 0) {
// Empty convos take this path too (once history is done) so hasScrolled gets set without an animated scroll.
if (
!hasInitiallyScrolled.current &&
(renderItems.length > 0 || !convoState.isFetchingHistory)
) {
hasInitiallyScrolled.current = true
flatListRef.current?.scrollToOffset({offset: height, animated: false})
// If history is already done loading, mark ready after a frame for the scroll to settle.