diff options
| author | Adam Soltys <[email protected]> | 2026-08-02 22:03:50 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-02 22:03:50 -0700 |
| commit | 5a16f87c3ba44c9c5231b37cf626db06b63ce351 (patch) | |
| tree | 80330f929ce5108c388cc5dbbea4c0b9cddd0cb1 /src/app.js | |
| parent | c68a29852ee90d5955e84371ad28d8258a5c8b47 (diff) | |
| download | coinosv3-5a16f87c3ba44c9c5231b37cf626db06b63ce351.tar.gz coinosv3-5a16f87c3ba44c9c5231b37cf626db06b63ce351.zip | |
Sync just works: NIP-65 relays, no card; gift-locking leftovers gone
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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')) ); |
