tane/apps/app_seeds/lib
vjrj 73ee98206f feat(chat): app-wide inbox listener so messages arrive without opening the chat
Reception only ran inside an open ChatScreen for a known peer, so a first
message from a new peer was invisible: nothing in local storage -> nothing
in the inbox list -> you never opened the chat -> you never subscribed.

Add InboxService: one long-lived NIP-17 inbox subscription for the whole
app (foreground), persisting every incoming message to MessageStore and
firing a 'changes' signal the inbox list live-reloads on. Reconnects when
the network returns; degrades to nothing offline. Started from main when a
social identity exists.

Make MessageStore.append idempotent (dedup by sender+timestamp+text) and
serialized behind a write lock — the global listener and an open chat's own
subscription now write the same conversation concurrently and relays
re-deliver stored gift wraps on every resubscribe. Tests for both.

Known trade-offs (follow-ups): foreground-only (no push yet); each of
InboxService/ChatScreen/MarketScreen opens its own RelayPool (a shared
connection is a later optimization).
2026-07-10 16:53:03 +02:00
..
data perf(species): seed the bundled catalog only once per version 2026-07-10 15:46:04 +02:00
db feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
di feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00
domain Solve lint issue 2026-07-10 10:34:43 +02:00
i18n fix(market): search your zone by a coarse prefix, not the exact cell 2026-07-10 16:12:38 +02:00
security feat(backup): sealed backups + printable recovery sheet 2026-07-09 22:32:13 +02:00
services feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00
state feat(market): search + pull-to-refresh in the market list 2026-07-10 15:40:13 +02:00
ui feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00
app.dart feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00
main.dart feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00