This commit is contained in:
thePR0M3TH3AN committed 2025-11-07 16:19:50 -05:00
1 parent cad9db188e
commit ad6374de92
1 file changed
+6
+6
View File
@@ -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);