From 83ad00a39863bb6a61e15977202fe2feea2ca696 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 1 Aug 2026 23:07:02 -0700 Subject: Drop npub-locked gifts; collapse Nostr login behind a button Gifts are plain bearer links again: the recipient-npub field, the one-time claim code, the DM delivery, the /lg/ claim route and the NIP-07 in-place decrypt are all gone, along with the crypto that only they used. Unclaimed gifts remain reclaimable by the sender, so nothing can be stranded by the removal. The unlock screen shows a single 'Sign in with Nostr' button that reveals the login options when tapped, instead of the full card competing with create/import. Co-Authored-By: Claude Fable 5 --- src/app.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index ded5ee4..8a33166 100644 --- a/src/app.js +++ b/src/app.js @@ -76,12 +76,7 @@ const ui = { pubkeyShown: false, // account public key revealed in Settings giftMode: false, // gift sub-view active on the Send page giftAmount: '', // gift-create amount input - giftLockNpub: '', // optional: lock the gift to this recipient nostr npub - giftLocked: false, // the just-created gift is locked to a nostr key giftClaimCode: null, // the one-time claim code DM'd to the recipient (fallback) - giftDmStatus: null, // 'sending' | 'sent' | 'failed' — nostr DM of the claim code - claimLocked: null, // a locked gift being opened: { v, amount, to, ct } - claimCodeInput: '', // the claim code the recipient pastes from their nostr DM viewGift: null, // re-viewing a previously created gift's link/QR { code, locked, amount, claimCode } claimChoose: null, // opening a gift with existing wallets present: { code } — pick a target giftCode: null, // last-created gift PSBT code -- cgit v1.2.3