Sync: Fix sync after reconnecting

This commit is contained in:
Alexander Zinchuk 2022-02-11 20:27:40 +01:00
parent 69466b2439
commit 066551ad64

View File

@ -172,7 +172,7 @@ addReducer('loadAllChats', (global, actions, payload) => {
let i = 0;
(async () => {
while (shouldReplace || !global.chats.isFullyLoaded[listType]) {
while (shouldReplace || !getGlobal().chats.isFullyLoaded[listType]) {
if (i++ >= INFINITE_LOOP_MARKER) {
if (DEBUG) {
// eslint-disable-next-line no-console