diff options
Diffstat (limited to 'src/features/sync.js')
| -rw-r--r-- | src/features/sync.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/features/sync.js b/src/features/sync.js index 1e2db41..76277a7 100644 --- a/src/features/sync.js +++ b/src/features/sync.js @@ -49,6 +49,13 @@ export function installSyncWallet(wallet) { this.nostr.setRelays(sync.relays); return this.nostr.publishEvent(partial); }, + // Publish an event signed by another key (the NWC wallet service keys). + async nostrPublishSigned(evt) { + const sync = getSyncConfig(); + if (this.offline || !sync.enabled) return null; + this.nostr.setRelays(sync.relays); + return this.nostr.publishSigned(evt); + }, async nostrFetch(filter, maxWait) { const sync = getSyncConfig(); if (this.offline || !sync.enabled) return []; |
