feat(FN-4327): complete Step 2 — direct visibility anchor on desktop

Fusion-Task-Id: FN-4327
Fusion-Task-Lineage: 8508cca0-c7ff-43da-bbf1-385f9bc095ff
This commit is contained in:
Fusion
2026-05-13 08:27:30 -07:00
committed by gsxdsm
parent 0683611ea3
commit e4eee8d7c2

View File

@@ -1296,7 +1296,10 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
}, [isMobile, activeSession]);
useEffect(() => {
if (!isMobile || (!activeSession && !roomThreadActive)) {
if (!activeSession && !roomThreadActive) {
return;
}
if (roomThreadActive && !isMobile) {
return;
}
@@ -1306,6 +1309,8 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
return;
}
anchorToBottom(messagesContainer);
isUserScrollingRef.current = false;
setIsUserScrolling(false);
};
const onVisibilityChange = () => {