Chat Folders: Fix updating folder list

This commit is contained in:
Alexander Zinchuk 2023-02-19 02:50:06 +01:00
parent 4b3559a381
commit cdf0335b97

View File

@ -69,10 +69,10 @@ const ChatFolders: FC<OwnProps & StateProps> = ({
const lang = useLang(); const lang = useLang();
useEffect(() => { useEffect(() => {
if (lastSyncTime && !orderedFolderIds) { if (lastSyncTime) {
loadChatFolders(); loadChatFolders();
} }
}, [lastSyncTime, loadChatFolders, orderedFolderIds]); }, [lastSyncTime, loadChatFolders]);
const allChatsFolder = useMemo(() => { const allChatsFolder = useMemo(() => {
return { return {