You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fae3d42
Browse filesBrowse the repository at this point in the historyBrowse files
Telegram sends nothing from a channel or group the account has left, so the
archive silently fell behind on them: on one account 198 synced chats were
missing from the dialog list, some not archived since February.
After each comparison with the dialog list, the server asks Telegram about
synced channels and groups missing from it, 100 a request, each at most
once a day. Sync goes off only when Telegram says the account left or was
removed, or the chat is gone or migrated; a chat still joined keeps its
sync and is logged, and so is one Telegram gave no answer about. When a
chat the server turned off returns to the dialog list, sync comes back on
and the gap behind its cursor is filled. Chats the user turned off stay
off, and private chats are never asked about: their messages arrive
without a dialog. doctor shows both counts.
console.log(`LEFT: sync is off for ${leftChats.syncOff} chat(s) you left; it comes back on by itself if you rejoin.`);
2763
+
}
2764
+
if(leftChats.stillJoined){
2765
+
console.log(`DIALOGS: ${leftChats.stillJoined} synced chat(s) are missing from your dialog list, though Telegram says you are still in them; sync stays on.`);
2766
+
}
2759
2767
if(repairSuggested){
2760
2768
console.log(`REPAIR: versions before 2.2.5 could lose messages; fill the holes with \`tgcli backfill repair --all\` (the last ${DEFAULT_REPAIR_SINCE} of every synced chat).`);
console.log(`[sync] ${missing.length} synced chat(s) are missing from the dialog list: sync off for ${counts.off} the account left, ${counts.member} still joined, ${counts.unknown} unknown.`);
1450
+
if(stillJoined.length){
1451
+
console.warn(`[sync] Missing from the dialog list but still joined, sync stays on: ${stillJoined.join(', ')}.`);
1452
+
}
1453
+
returncounts;
1454
+
}
1455
+
1397
1456
// A chat missing from the full dialog list is one the account left or lost: Telegram
1398
1457
// sends no updates for it, and the archive can no longer keep up with it. An empty list
1399
1458
// proves nothing, so it changes nothing.
@@ -1443,6 +1502,12 @@ export default class MessageSyncService {
1443
1502
}while(this.reconcileAgain&&!this.stopRequested);
1444
1503
this.reconcileNeeded=false;
1445
1504
this.lastReconcileAt=Date.now();
1505
+
if(!this.stopRequested){
1506
+
// After the comparison, so its requests do not hold the cursors any longer.
0 commit comments