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
Sync jobs drop the senders and the message count of each history page #126
Found while running the 0.8.0 daemon for a day on a real account.
fetchHistoryPage (src/daemon/sync-worker-real-helpers.ts) returns the page's messages, count and users, but the sync jobs store only the messages:
Senders aren't cached. 1,135 senders of 71,348 cached messages (about 9%, nearly all in groups and supergroups) have no users_cache row. Search results show no sender name for them, and --sender @username or sender:name can't find their messages. The CLI's own history path (cacheHistoryResponse) does cache the senders.
count is dropped.chat_sync_state.total_messages is NULL for all 2,940 chats, so nothing can say how much history is left. tg status shows chats pending, not messages, and no estimate.
Store count in total_messages and show history progress in tg status (messages cached of messages known, per account and for the biggest pending chats).
Done when tests show a history page's users cached and total_messages set, and tg status reports the progress. Related: #93.
Activity
fix(sync): cache the senders and counts of history pages, show histor…
fix(sync): cache the senders and counts of history pages, show histor…