feat: the group answers from its inbox, once its quorum has read and signed the reply (group-inbox, Phase 8)

InboxReplies builds a reply as one rumor authored by the group, sealed
from the announced inbox key to each recipient's announced key (or
their identity) and once to the group itself, per nostr-protocol/nips#2361,
and proposes the seals as one batch with the manifest beside them,
sealed to the inbox key, so a member who is not an admin learns how
many seals there are and nothing else. Every signer reads the reply
before signing it: InboxRefusal opens the manifest and every seal, and
declines out loud a copy that says something else, a seal to a key its
recipient did not announce, a forged 10044, a recipient the reply does
not name, a blank reply, a seal dated outside two days, or anything it
cannot read -- including on a device that holds no inbox key. The
manifest rides a resend, and the signing screen says the reply's words,
its recipients, and who has announced no key.

Once signed, the proposer's device wraps each seal for its recipient's
relays and the group's copy for the group's, owed through
GroupInboxPublisher, and files the copy at once; other admins file it
when it arrives. A reply not yet on a relay offers Send again. The
conversation screen gets the composer, which warns about a recipient
whose app may not open a message from a group. A seal draws nothing in
the room's transcript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-22 02:05:46 +02:00
1 parent 12a93bd4d7
commit d21d6ecd05
19 files changed
+812 -28

No files matched your search

@@ -773,4 +773,12 @@
<string name="couldn_t_start_the_ceremony">Couldn't start the ceremony</string>
<string name="the_inbox_key_ceremony_started">The inbox key ceremony started</string>
<string name="no_inbox_relays_were_valid">None of those is a relay a stranger could reach</string>
<string name="reply_as_the_group">Reply as the group</string>
<string name="ask_the_group_to_sign_this_reply">Ask the group to sign this reply</string>
<string name="the_group_signs_a_reply">The group's quorum has to sign this before it is sent. It goes out in the group's name, not yours, and can't be taken back once signed.</string>
<string name="has_announced_no_inbox_key">%1$s has announced no inbox key, so their app may not be able to open a message from a group.</string>
<string name="could_not_ask_the_group_to_sign_this_reply">Couldn't ask the group to sign this reply.</string>
<string name="not_yet_on_a_relay">Not yet on a relay</string>
<string name="send_reply_again">Send again</string>
<string name="sent_again">Sent again</string>
</resources>