mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 20:48:24 +00:00
Merge pull request #344 from zapstore/fix/naddr-relay-hints
Include relay hint in naddr for app events
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user