diff --git a/packages/signer/src/signers/nip46.ts b/packages/signer/src/signers/nip46.ts index cafc46c..0065edd 100644 --- a/packages/signer/src/signers/nip46.ts +++ b/packages/signer/src/signers/nip46.ts @@ -107,9 +107,7 @@ export class Nip46Receiver extends Emitter { await sleep(3000) } - if (response.id) { - this.emit(Nip46Event.Receive, {...response, url, event} as Nip46Response) - } + this.emit(Nip46Event.Receive, {...response, url, event} as Nip46Response) }) this.sub!.emitter.on(SubscriptionEvent.Complete, () => { diff --git a/packages/util/src/Links.ts b/packages/util/src/Links.ts index fe0ff02..e8bd226 100644 --- a/packages/util/src/Links.ts +++ b/packages/util/src/Links.ts @@ -1,3 +1,3 @@ export const fromNostrURI = (s: string) => s.replace(/^nostr:\/?\/?/, "") -export const toNostrURI = (s: string) => `nostr:${s}` +export const toNostrURI = (s: string) => s.startsWith('nostr:') ? s : `nostr:${s}`