Stale channel state keeps left channels in the feed #12
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
foresle/notgram#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Channels the account left long ago still deliver new posts into the feed every day, dated the current day, so the problem is ongoing rather than a one-time backlog of old posts.
Scope:
Notes:
iter_dialogs. The project keeps no channel list of its own and must not gain one, the current set of joined channels is read from Telegram at runtime.grammerstracks update state. On startup ingestion drains every dialog and streams updates withcatch_upenabled, which seeds a per-channel state entry intosession.sqlitefor every channel seen in dialogs or incoming updates.grammersthen periodically polls the channel difference for each stored entry and emits any new posts it finds.CHANNEL_PRIVATEerror. A public channel never returns it, because Telegram serves public channel content to non-members, so the entry of a left public channel lives in the session forever and keeps yielding new posts.grammersexposes no method that reconciles stored entries against the current dialog set on its own, so leaving a channel does not remove its entry.session.sqliteremoves the current inflow, and the runtime check against the dialog set keeps left channels from being picked up again.