From a920032993172b9352535ce02d6988a9dca3cd4a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 31 Jan 2026 07:14:47 +0000 Subject: [PATCH] fix(ci): prevent signer timeouts in background tests Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- js/subscriptions.js | 8 ++++---- js/userBlocks.js | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/js/subscriptions.js b/js/subscriptions.js index 10c7a7ec..64a87acf 100644 --- a/js/subscriptions.js +++ b/js/subscriptions.js @@ -859,10 +859,10 @@ class SubscriptionsManager { let signer = getActiveSigner(); if ( - !signer || - (!signerHasRequiredDecryptors(signer) && - typeof nostrClient?.ensureActiveSignerForPubkey === "function" && - allowPermissionPrompt) + allowPermissionPrompt && + (!signer || + (!signerHasRequiredDecryptors(signer) && + typeof nostrClient?.ensureActiveSignerForPubkey === "function")) ) { signer = await nostrClient.ensureActiveSignerForPubkey(userPubkey); } diff --git a/js/userBlocks.js b/js/userBlocks.js index 2ab1b1e7..9d469a52 100644 --- a/js/userBlocks.js +++ b/js/userBlocks.js @@ -959,9 +959,10 @@ class UserBlockListManager { }; if ( - !signer || - (!signerHasRequiredDecryptors(signer) && - typeof nostrClient?.ensureActiveSignerForPubkey === "function") + allowPermissionPrompt && + (!signer || + (!signerHasRequiredDecryptors(signer) && + typeof nostrClient?.ensureActiveSignerForPubkey === "function")) ) { signer = await nostrClient.ensureActiveSignerForPubkey(normalized); }