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
Option to cache live messages only in synced chats #100
While the daemon runs, it caches every message that arrives live, in every chat, including chats whose sync is off (docs/sync-strategy.md). For someone in busy large groups and channels, this is probably what grows a cache the most, and turning a chat off doesn't stop it.
Proposed: a setting that keeps live messages only for chats with sync on, per account (cache.liveMessages: all|synced, default all as today), and a per-chat override with tg chats sync. Messages already cached stay. Measure first how much of a made-up busy account's growth comes from chats with sync off.
Done when e2e tests show that with synced a live message in a chat with sync off isn't cached and one in a synced chat is, and the docs describe the setting. Related: #80.
Activity