From ad6374de92cb8b3f2962182b9997adc6c0653451 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 7 Nov 2025 16:19:50 -0500 Subject: [PATCH] update --- js/services/commentThreadService.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/services/commentThreadService.js b/js/services/commentThreadService.js index 8a5af9a7..e02f62bf 100644 --- a/js/services/commentThreadService.js +++ b/js/services/commentThreadService.js @@ -158,6 +158,7 @@ export default class CommentThreadService { } = {}) { this.teardown(); + // Always ensure the pool is ready before proceeding if (typeof this.nostrClient?.ensurePool === "function") { try { await this.nostrClient.ensurePool(); @@ -167,6 +168,11 @@ export default class CommentThreadService { ); return { success: false, error }; } + } else { + this.emitError( + new Error("Nostr client missing ensurePool implementation."), + ); + return { success: false }; } const rawVideoAuthorPubkey = normalizeString(video?.pubkey);