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();
useEffect(() => {
if (lastSyncTime && !orderedFolderIds) {
if (lastSyncTime) {
loadChatFolders();
}
}, [lastSyncTime, loadChatFolders, orderedFolderIds]);
}, [lastSyncTime, loadChatFolders]);
const allChatsFolder = useMemo(() => {
return {