From 066551ad6442054efb6a204096116714ff125b07 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 11 Feb 2022 20:27:40 +0100 Subject: [PATCH] Sync: Fix sync after reconnecting --- src/modules/actions/api/chats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/actions/api/chats.ts b/src/modules/actions/api/chats.ts index c2228f15e..204807333 100644 --- a/src/modules/actions/api/chats.ts +++ b/src/modules/actions/api/chats.ts @@ -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