docs(mobile): explain push stop report gating and fix the test error comment

Say why the current-identity request is gated on the community key in a push stop but not in relay access, and that the SDK, not the destination, drops a repeated error object.

Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost>
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-11-20 10:27:34 -08:00
parent 129dd7166e
commit 979510a9ad
2 changed files with 7 additions and 2 deletions

View File

@@ -41,8 +41,8 @@ abstract interface class DiagnosticReporter {
/// The error a test report carries, so it is easy to tell apart.
///
/// Not const: each report needs its own instance, or the destination's
/// deduplication drops every report after the first.
/// Not const: each report needs its own instance, or the SDK's own
/// deduplication drops a repeat of the last error object.
class DiagnosticTestError implements Exception {
DiagnosticTestError();

View File

@@ -503,6 +503,11 @@ class BuilderlabAccountClient {
}
final pubkey = AccountIdentityStore.publicKeyForNsec(nsec);
// Never creates a binding: the key must already belong to the account.
// Gated on [pubkey], like the assertion request below: this push stop
// is for a community that may be removed, so a bad reply must not be
// filed under whichever member is current. HostedRelayAuth._acquire
// makes the same request without a key, so it has no signer to gate
// on; its caller is the active community, whose member reports name.
final current = await _request(
'/v1/buzz/nostr-identities/current',
credential: signedOut.credential,