From bded539122e2effeff959fa2c3bff154f86c43f0 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 19 Feb 2024 18:53:48 -0300 Subject: [PATCH] nip46: fix messages being ignored after auth_url. --- nip46.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip46.ts b/nip46.ts index 073efae..14c444f 100644 --- a/nip46.ts +++ b/nip46.ts @@ -118,7 +118,7 @@ export class BunkerSigner { const { id, result, error } = JSON.parse(await decrypt(clientSecretKey, event.pubkey, event.content)) if (result === 'auth_url' && waitingForAuth[id]) { - delete listeners[id] + delete waitingForAuth[id] if (params.onauth) { params.onauth(error)