From 874df51d22b4f406d5019bd36ca06b92aec0c6a6 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 15 May 2023 10:56:48 +0200 Subject: [PATCH] Multitab: Fix errors when locking with passcode (#3169) --- src/components/left/main/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {