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:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user