Skip to content

fix(mobile): hide archived identities from mentions - #6548

Open
joshpalerlin wants to merge 1 commit into
block:mainfrom
joshpalerlin:fix/mobile-archived-agent-mentions
Open

fix(mobile): hide archived identities from mentions#6548
joshpalerlin wants to merge 1 commit into
block:mainfrom
joshpalerlin:fix/mobile-archived-agent-mentions

Conversation

@joshpalerlin

Copy link
Copy Markdown

What

  • load the active relay's NIP-11 self identity
  • fetch and verify its NIP-IA kind:13535 archive snapshot
  • remove archived identities from mobile channel members, relay-agent suggestions, and global mention search results
  • keep the current-user exemption used by desktop to avoid self-shadowing
  • refresh the picker when a newer relay-signed snapshot arrives

Why

Buzz Desktop already excludes archived identities from mention autocomplete. Mobile did not load the relay archive snapshot, so retired owned agents could remain visible beside their active replacement.

Safety

  • archive state is scoped to the active relay/community
  • snapshots must match the relay identity advertised by NIP-11
  • event id and Schnorr signature are verified before use
  • exactly one NIP-70 marker is required
  • malformed or unavailable state fails open without hiding identities
  • NIP-01 replacement ordering handles newer and same-timestamp snapshots

Proof

  • dart format --output=none --set-exit-if-changed .
  • flutter analyze — no issues
  • focused mention/archive tests — 29 passed
  • full flutter test — 1,584 passed

Handoff

  • Source: official NIP-IA client behavior plus the existing desktop archive-aware mention implementation
  • Current gate: build and Docker verification complete; ready for maintainer review
  • Next step: maintainers review the mobile provider shape and CI confirms the branch

@joshpalerlin
joshpalerlin requested a review from a team as a code owner August 22, 2026 06:27
WHAT: Load the active relay NIP-IA snapshot and exclude archived identities from mobile mention candidates while preserving the self exemption.

WHY: Archived owned agents remained visible in mobile autocomplete even though desktop already hid them.

SOURCE: Official NIP-IA client behavior and the existing desktop archive-aware mention implementation.

CURRENT GATE: Build and local Docker audit complete.

PROOF: Dart format passed; flutter analyze found no issues; focused tests passed 29/29; full mobile tests passed 1584/1584.

NEXT STEP: Upstream PR is open for independent review and CI.

Signed-off-by: Josh Paler Lin <175048419+joshpalerlin@users.noreply.github.com>
@joshpalerlin
joshpalerlin force-pushed the fix/mobile-archived-agent-mentions branch from 548e387 to ac239a0 Compare August 22, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant