aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/sync.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/sync.js')
-rw-r--r--src/features/sync.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/sync.js b/src/features/sync.js
index 481dda9..35bf358 100644
--- a/src/features/sync.js
+++ b/src/features/sync.js
@@ -63,6 +63,9 @@ export function installSyncWallet(wallet) {
nostrNpub() { const pk = this.nostrPubkey(); return pk ? npubOf(pk) : null; },
// Send a nostr DM (e.g. a locked gift's claim code) to a recipient pubkey.
+ async sendNostrDM(recipientPkHex, text) {
+ return this.nostr && this.nostr.sk ? this.nostr.sendDM(recipientPkHex, text) : false;
+ },
// Generic event publish/fetch on the configured sync relays — the seam
// other features (ark zaps) use to speak their own kinds. No-ops when