From 19c14131ce3fc69a06d3c0af8d445b056d703bf9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 8 Aug 2026 08:21:11 -0700 Subject: Profiles wear their latest notes, each one zappable; a zap with no ark address to land on becomes a gift only their key can open Co-Authored-By: Claude Fable 5 --- src/features/sync.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/features/sync.js') 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 -- cgit v1.2.3