imsd-messages/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 724cd409ba
Model: messages, conversations and the banner
The GLib-free shape of what the app shows: imsd's state words (each
applies as it comes: imsd gives a message's words in order, the
submission's first and a status report's after sent, its AGENTS.md
section 8.4); a received text (the dictionary of imsd's AGENTS.md
section 8.4) becoming a message keyed by the sender's address completed
with the code of the number it arrived for (imsd's `to`, the
subscriber's own number at receipt — the record's: a text imsd kept
across a SIM change would otherwise take the new SIM's code) or, lacking
one, of the service centre that delivered it, the own number's code —
none where the centre's stood in, which names no SIM's country — and the
operator of the SIM it arrived under (imsd's `operator`) its plan
(Number's SimPlan), and whose sort time is the service centre's stamp,
else its arrival; the short message type 0, which a phone acknowledges
and discards (IsType0, TS 23.040 9.2.3.9); the grouping into
conversations newest first, unread counting incoming unread only; and
the one-line banner from what the app knows about imsd: absent,
connecting (GetStatus has not answered since imsd appeared), off,
subscribe refused, unregistered, the store refusing a write (its disk
full: texts wait; a send still goes), subscribe failed otherwise — what
blocks sending before what only costs live updates — messages it may not
delete.

Tested: tests/Model.
2026-11-17 22:24:23 +01:00
..
Model Model: messages, conversations and the banner 2026-11-17 22:24:23 +01:00
Number Number: the conversation key of an address 2026-11-17 06:14:18 +01:00
Time Time: ISO 8601 stamps, civil dates and the captions 2026-11-17 06:14:18 +01:00
Wrap Wrap: word wrap and ellipsis over a measure function 2026-11-17 06:14:18 +01:00