diff --git a/src/components/left/main/Chat.tsx b/src/components/left/main/Chat.tsx index 444d8fe90..03776fda7 100644 --- a/src/components/left/main/Chat.tsx +++ b/src/components/left/main/Chat.tsx @@ -205,7 +205,7 @@ const Chat: FC = ({ canChangeFolder, }); - const isIntersecting = useIsIntersecting(ref, observeIntersection); + const isIntersecting = useIsIntersecting(ref, chat ? observeIntersection : undefined); // Load the forum topics to display unread count badge useEffect(() => {