mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
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;
|
||||
|
||||
(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
|
||||
|
Loading…
Reference in New Issue
Block a user