Expand description
Typed changes to a Community: what a refresh folded, told apart by comparing what this device held before it with what it holds after. Local reads only. A session’s first look at a Community is its baseline, so nothing that stood before it reads as new, and a change is reported only when it is news: made since the listener began.
Structs§
- Category
Info - A Category as a change reports it.
- Channel
Info - A Channel as a change reports it.
- Community
Change - One change to a Community, who made it and when.
Enums§
- Change
Kind - What changed. Members are npubs, every other id is lowercase hex.
Functions§
- category_
infos - Every Category, in sidebar order.
- channel_
infos - Every Channel’s settings, in sidebar order.
- forget
- Drop what was seen of a Community this account no longer holds, so a rejoin starts fresh.
- notify
- Report what changed in
community_idsince the last look, to a handler that asked for it. - notify_
one - Report one change this device saw happen rather than fold, such as an authorized kick.
- notify_
soon notify, half a second from now and once for a burst: what any member can cause cheaply, a Nickname say, never holds up the live feed.- prime_
all - Take the baseline for every Community held, so the first refresh of each reports its
changes rather than becoming the baseline itself, then hand
handlerthe deletions the catch-up purged.