Expand description
Store message handlers for Avestruz: having the event store let go of
what it has kept for longer than the settings say (see
crate::nostr::sweep).
Once a day, in the background, and when the settings say another number of days. A day begins when the account’s bookmarks are known, which is when the popup first opens: what is bookmarked stays, and what is bookmarked takes the account’s key to read. Bookmarks that can’t be read keep everything where it is until they can. An account without its key keeps no bookmarks here, and its day begins within the hour.
Nothing on show changes: the lists are in the model, not in the store.
Constants§
- DAY_
SECS 🔒 - How long a day is, for counting the days notes are kept.
- SWEEP_
EVERY 🔒 - How long after the store let go of what is old it does so again.