Chat Folders: Fix updating folder list
This commit is contained in:
parent
4b3559a381
commit
cdf0335b97
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user