Skip to content

Commit 422a90f

Browse files
wesbillmanBrain
andauthored
fix(desktop): paint thread replies on open without scroll nudge (#1090)
Signed-off-by: Wes <[email protected]> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
1 parent d4cd919 commit 422a90f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎desktop/src/features/messages/ui/MessageThreadPanel.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ export function MessageThreadPanel({
368368
syncScrollState,
369369
} = useTimelineScrollManager({
370370
channelId: threadHeadId,
371-
isLoading: false,
371+
// Wait for deferred replies to commit before scroll-init (else rows mount un-scrolled).
372+
isLoading: repliesRenderState === "pending",
372373
messages: threadMessages,
373374
onTargetReached: onScrollTargetResolved,
374375
scrollContainerRef: threadBodyRef,

0 commit comments

Comments
 (0)