From cdf0335b97f4310d8d053f160164d5fd88e55466 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 19 Feb 2023 02:50:06 +0100 Subject: [PATCH] Chat Folders: Fix updating folder list --- src/components/left/main/ChatFolders.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/left/main/ChatFolders.tsx b/src/components/left/main/ChatFolders.tsx index efb3ff7d6..4a2c97cfb 100644 --- a/src/components/left/main/ChatFolders.tsx +++ b/src/components/left/main/ChatFolders.tsx @@ -69,10 +69,10 @@ const ChatFolders: FC = ({ const lang = useLang(); useEffect(() => { - if (lastSyncTime && !orderedFolderIds) { + if (lastSyncTime) { loadChatFolders(); } - }, [lastSyncTime, loadChatFolders, orderedFolderIds]); + }, [lastSyncTime, loadChatFolders]); const allChatsFolder = useMemo(() => { return {