Files
buzz/mobile/lib
Logan Johnson 50ed93bfe7 fix(mobile): recognize agents without NIP-OA in Huddles
Mobile Huddles decided "is this an agent" from the channel role `bot`.
The relay now stores `bot` only for keys with a recorded NIP-OA owner
(#8494), so an agent without an owner attestation joins as `member`.
Mobile then left it out of the participant list after joining, labeled
it as a person, did not show its "preparing a response" state, and
counted it as a person when deciding whether leaving ends the Huddle.

Add one Huddle agent owner, `huddle_agents_provider.dart`. A member is
an agent when it has the `bot` role or when a trusted author published
a validly signed kind:30177 managed-agent record for it. Trusted authors
are the current user and the Huddle channel's owners; a record from
anyone else is only a claim. This is the same rule as the Desktop fix
(#8544). Signature checks run off the UI isolate.

If the records are still loading or cannot be read, the `bot` role still
works, and the last-person count fails so leave keeps the Huddle open.

Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
2026-11-01 17:54:13 -05:00
..