diff --git a/js/nostr/client.js b/js/nostr/client.js index bb7e4ccb..c04865fa 100644 --- a/js/nostr/client.js +++ b/js/nostr/client.js @@ -213,7 +213,8 @@ import { queueSignEvent } from "./signRequestQueue.js"; import { EventsMap } from "./eventsMap.js"; import { PersistenceManager } from "./managers/PersistenceManager.js"; import { ConnectionManager } from "./managers/ConnectionManager.js"; -import { SignerManager } from "./managers/SignerManager.js"; +import { SignerManager, resolveSignerCapabilities } from "./managers/SignerManager.js"; +import { RelayBatchFetcher } from "./relayBatchFetcher.js"; import { prepareVideoPublishPayload, prepareVideoMirrorOptions, @@ -463,6 +464,7 @@ export class NostrClient { this.dirtyTombstones = new Set(); this.persistenceManager = new PersistenceManager(this); this.syncMetadataStore = new SyncMetadataStore(); + this.relayBatchFetcher = new RelayBatchFetcher(this); this.nip71Cache = new Map(); this.watchHistory = createWatchHistoryManager({ diff --git a/js/nostr/managers/SignerManager.js b/js/nostr/managers/SignerManager.js index e794c862..267d62eb 100644 --- a/js/nostr/managers/SignerManager.js +++ b/js/nostr/managers/SignerManager.js @@ -53,7 +53,7 @@ import { queueSignEvent } from "../signRequestQueue.js"; import { signEventWithPrivateKey } from "../publishHelpers.js"; import { ensureNostrTools, getCachedNostrTools } from "../toolkit.js"; -function resolveSignerCapabilities(signer) { +export function resolveSignerCapabilities(signer) { const fallback = { sign: false, nip44: false,