Skip to main content

Module early

Module early 

Source
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 dated at_ms, until it is due, then release it through via. One dated past HORIZON_MS is let go, to be read again once its date nears.
is_early
Whether a message dated at_ms must wait.
start
Start this account’s live session: held wraps are released through handler, and the clock is checked against the relays now, every clock::RESYNC, and whenever a server says it is off.