Expand description
A message dated ahead of this device’s (corrected) clock waits until its time instead of showing at once: shown early, it would sit below everything sent after it, holding the bottom of the chat. Held in memory and never marked handled, so one cut short by a restart comes back through the next sync or history read, and released through the normal path, which judges it afresh, notifies and counts it unread as if it arrived then.
Enums§
- Via
- Which path a held wrap goes back through.
Constants§
- HORIZON_
MS - How far ahead a message may be dated and still be held. One further out isn’t: it stays on the relays for a later read once its date nears (CORD-02 §5’s horizon, CORD-03 §1).
- TOLERANCE_
MS - How far ahead of this device a message may be dated and still show at once.
Functions§
- hold
- Hold
wrap, a message datedat_ms, until it is due, then release it throughvia. One dated pastHORIZON_MSis let go, to be read again once its date nears. - is_
early - Whether a message dated
at_msmust wait. - start
- Start this account’s live session: held wraps are released through
handler, and the clock is checked against the relays now, everyclock::RESYNC, and whenever a server says it is off.