messaging: owners can block a conversation

A blocked thread key is dropped unread (not announced, not counted against
the daily new-conversation limit). API, UI button with confirmation, and a
list with unblock.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 20:50:38 +01:00
co-authored by Claude Sonnet 5.5
parent a54094ea35
commit 13c82f8d59
14 changed files with 433 additions and 3 deletions
+10
View File
@@ -339,6 +339,16 @@ text rules below are enforced by endpoints.
unseen until room frees up (or they expire); highest work first, then oldest.
Envelopes that fail to decrypt are remembered (`inbox_seen`) and not tried
again.
- **Block.** The owner can block a conversation (`PUT
/api/v1/inbox/{listing}/{thread}/block`): it is erased, and every later
envelope of that thread key is dropped unread, unannounced and not counted
against the new-conversation limit. `DELETE` on the same path lifts the block
(what arrived meanwhile is gone), `GET /api/v1/blocked` lists blocks. The
buyer is not told. A block lasts as long as its listing is stored. It
stops a thread key, not a person: a buyer can start over with a new key,
which costs a first message again (proof-of-work, the link ban, the daily
limit). Plain *delete* only erases; the thread would reappear as a new
conversation if the buyer wrote again.
- Messages carry **no attachments and no images**.
- The decrypted inbox is stored only on the owner's node, in its database. The
exact address is a private per-listing field there, never signed or