mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
The desktop encrypted_recipients() lookup used .first() on a multi-relay merge of the addressable kind:39002 membership event and silently fell back to encrypting to only self when the lookup came back empty. With the membership event present on only some relays (split-brain / propagation lag), a private-channel message could be gift-wrapped to just the sender — so the agent (and other members) never received it, with no visible error. Now: pick the NEWEST 39002 by created_at, and if an encrypted channel resolves to no other members, return an error so the send fails loudly and can be retried, instead of silently dropping every other recipient.