Merge pull request #344 from zapstore/fix/naddr-relay-hints

Include relay hint in naddr for app events
This commit is contained in:
franzap
2026-03-09 20:20:56 +00:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -39,6 +39,12 @@ bool appStackEventFilter(Map<String, dynamic> event) {
return false;
}
/// Authoritative relay for NIP-82 software application events (kind 32267).
/// Used as the relay hint in naddr encoding so other clients can resolve app events.
/// Invariant: all Zapstore-published app events are available on this relay.
/// Stack events (social relays) should NOT use this hint.
const kDefaultRelay = 'wss://relay.zapstore.dev';
/// Amber signer package ID
const kAmberPackageId = 'com.greenart7c3.nostrsigner';
+1 -1
View File
@@ -633,7 +633,7 @@ class _AppDetailContent extends HookConsumerWidget {
identifier: app.identifier,
author: app.pubkey,
kind: app.event.kind,
relays: [],
relays: const [kDefaultRelay],
),
);
return 'https://zapstore.dev/apps/$naddr';
+1 -1
View File
@@ -66,7 +66,7 @@ class AppCard extends HookConsumerWidget {
identifier: app!.identifier,
author: app!.pubkey,
kind: app!.event.kind,
relays: const [],
relays: const [kDefaultRelay],
),
);
context.push('/$first/app/$naddr');