Skip to main content

Module changes

Module changes 

Source
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§

CategoryInfo
A Category as a change reports it.
ChannelInfo
A Channel as a change reports it.
CommunityChange
One change to a Community, who made it and when.

Enums§

ChangeKind
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_id since 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 handler the deletions the catch-up purged.