Sync: Fix sync after reconnecting
This commit is contained in:
parent
69466b2439
commit
066551ad64
@ -172,7 +172,7 @@ addReducer('loadAllChats', (global, actions, payload) => {
|
|||||||
let i = 0;
|
let i = 0;
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
while (shouldReplace || !global.chats.isFullyLoaded[listType]) {
|
while (shouldReplace || !getGlobal().chats.isFullyLoaded[listType]) {
|
||||||
if (i++ >= INFINITE_LOOP_MARKER) {
|
if (i++ >= INFINITE_LOOP_MARKER) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user