From b9f8ec30e6681c623162bb36e44df16934740b32 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 19 Sep 2026 22:36:55 -0700 Subject: Zaps: the sound can be switched off — from the held bolt or Settings → Nostr. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A prefs flag (zapSound, absent = on) synced with the zap amount. The strike and the tally are unchanged; only the clip stays quiet, and the clip chunk is not even fetched while it's off. Co-Authored-By: Claude Fable 5.1 --- src/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 16f0595..6a8b6a6 100644 --- a/src/app.js +++ b/src/app.js @@ -5376,6 +5376,14 @@ const ctx = { wallet.saveFeatureState('prefs', p); try { wallet.saveCache(); } catch {} }, + // the tap's sound effect — on unless switched off from the held-⚡ screen + zapSound: () => !wallet.loadFeatureState || wallet.loadFeatureState('prefs', {}).zapSound !== false, + setZapSound: (on) => { + const p = wallet.loadFeatureState('prefs', {}); + if (on) delete p.zapSound; else p.zapSound = false; + wallet.saveFeatureState('prefs', p); + try { wallet.saveCache(); } catch {} + }, // Per-recipient auto-pay budget: a fixed-amount LNURL/address the user // trusts to pay without confirmation, up to this many sats. Keyed by the // recipient's address/lnurl. Synced with the rest of prefs. -- cgit v1.2.3