diff options
| author | Adam Soltys <[email protected]> | 2026-10-25 14:52:14 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-25 14:52:14 -0700 |
| commit | 58f7de1729bac5db2ade612ed1fd159b22ef587e (patch) | |
| tree | a46d59b7c2926a16f7d263506ae48c6b6a116cb6 /src/features/gifts-wallet.js | |
| parent | 0a0fef43ffe112271a70c53f4399c4fb9b5b5dd6 (diff) | |
| download | coinosv3-58f7de1729bac5db2ade612ed1fd159b22ef587e.tar.gz coinosv3-58f7de1729bac5db2ade612ed1fd159b22ef587e.zip | |
Gifts carry a note: an optional "Add a note" when making one, quoted above the amount for whoever opens it. It rides the link after the # (#m=…), so no server sees it; the gift's record keeps it, so Copy link again and View include it; with a note the QR is byte mode
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'src/features/gifts-wallet.js')
| -rw-r--r-- | src/features/gifts-wallet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/gifts-wallet.js b/src/features/gifts-wallet.js index 824ddc0..7004b12 100644 --- a/src/features/gifts-wallet.js +++ b/src/features/gifts-wallet.js @@ -274,9 +274,9 @@ export function installGiftWallet(wallet) { // gift's link/QR can be re-viewed later and a claimed one identified in history. _giftRecordsKey() { return this._cacheKey() + ':giftrec'; }, - recordGift({ code, locked, amount, claimCode, outpoints }) { + recordGift({ code, locked, amount, claimCode, outpoints, note }) { if (!outpoints || !outpoints.length) return; - this.giftRecords()[outpoints[0]] = { id: outpoints[0], code, locked: !!locked, amount, claimCode: claimCode || null, outpoints, created: Date.now(), revoked: false }; + this.giftRecords()[outpoints[0]] = { id: outpoints[0], code, locked: !!locked, amount, claimCode: claimCode || null, outpoints, created: Date.now(), revoked: false, ...(note ? { note } : {}) }; this._saveGiftRecords(); try { this.saveCache(); } catch {} // publish the new gift to cross-device sync }, |
