From 5a16f87c3ba44c9c5231b37cf626db06b63ce351 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 2 Aug 2026 22:03:50 -0700 Subject: Sync just works: NIP-65 relays, no card; gift-locking leftovers gone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Device sync card and toggle are gone — sync is always on, riding the user's own NIP-65 (kind 10002) write relays: the login npub's first, else the wallet key's, coinos relay as the fallback and always included. A fresh wallet identity with no NIP-65 publishes one (default relay) so other clients can find its events. The npub-locked-gift remnants go with it: the per-wallet nostr address card that pitched gift-locking, the how-it-works sentence, the dead NostrSync.sendDM/sendNostrDM path, and the orphaned claim-code field. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/app.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 29bea21..8c70f89 100644 --- a/src/app.js +++ b/src/app.js @@ -77,7 +77,6 @@ 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 - giftClaimCode: null, // the one-time claim code DM'd to the recipient (fallback) 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 @@ -1861,16 +1860,6 @@ function pubkeyCard(a) { ); } -// Nostr address — share it so others can send you locked gifts. -function nostrNpubCard(a) { - if (a.id !== activeId || !wallet.nostrNpub || !wallet.nostrNpub()) return null; - return h('div', { class: 'card col' }, - h('h3', {}, t('nostrKeyTitle')), - h('p', { class: 'small muted', style: 'margin:0' }, t('nostrKeyDesc')), - h('div', { class: 'addr-box break', style: 'font-size:12px' }, wallet.nostrNpub()), - copyBtn(wallet.nostrNpub(), t('copyKey'))); -} - function autolockCard(a) { return h('div', { class: 'card col' }, h('h3', {}, t('autolockTitle')), @@ -1892,7 +1881,6 @@ function accountSettingsScreen() { walletNameCard(a), pubkeyCard(a), recoveryCard(a), - nostrNpubCard(a), autolockCard(a), h('button', { class: 'btn-ghost btn-block', onClick: () => { ui.editLabel = null; ui.revealShown = false; ui.pubkeyShown = false; ui.loadSeed = null; goBack(() => { ui.screen = 'accounts'; }); } }, t('back')) ); -- cgit v1.2.3