From 979510a9ad620ff3f824d962f70188cff29a5d94 Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Fri, 20 Nov 2026 10:27:34 -0800 Subject: [PATCH] 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 Signed-off-by: Tom Brow --- mobile/lib/shared/diagnostics/diagnostic_reporter.dart | 4 ++-- mobile/lib/shared/hosted/builderlab_account.dart | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mobile/lib/shared/diagnostics/diagnostic_reporter.dart b/mobile/lib/shared/diagnostics/diagnostic_reporter.dart index 43e5a1e1e6..c9976597f5 100644 --- a/mobile/lib/shared/diagnostics/diagnostic_reporter.dart +++ b/mobile/lib/shared/diagnostics/diagnostic_reporter.dart @@ -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(); diff --git a/mobile/lib/shared/hosted/builderlab_account.dart b/mobile/lib/shared/hosted/builderlab_account.dart index c603bf0270..a3d6824294 100644 --- a/mobile/lib/shared/hosted/builderlab_account.dart +++ b/mobile/lib/shared/hosted/builderlab_account.dart @@ -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,