diff options
| author | Adam Soltys <[email protected]> | 2026-08-14 01:19:44 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-14 01:19:44 -0700 |
| commit | 7a7b2c61fe8394844fa306debb84917454ade7b0 (patch) | |
| tree | 4d2505c52dc239b5379e43400ac7bf822773e7aa /src/nwc-respond.js | |
| parent | 5b23470f5d9ec7ee7cc33c2b4b936ddd24fa17cc (diff) | |
| download | coinosv3-7a7b2c61fe8394844fa306debb84917454ade7b0.tar.gz coinosv3-7a7b2c61fe8394844fa306debb84917454ade7b0.zip | |
Settings grows a Notifications page — per-category switches the notifier honours server-side — and the status bar gets a real coinos badge instead of a black blob
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src/nwc-respond.js')
| -rw-r--r-- | src/nwc-respond.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nwc-respond.js b/src/nwc-respond.js index bd75360..232ae3e 100644 --- a/src/nwc-respond.js +++ b/src/nwc-respond.js @@ -280,8 +280,9 @@ export async function respondFromBg(data, { result: { preimage: a.preimage, fees_paid: (a.feeSat || 0) * 1000 }, }); log(`paid ${a.amountSat || dec.amountSat} sat via the ASP from the background mirror`); - // Money left while the app was closed — that always deserves a heads-up, - // whether it was a zap from a nostr app or any other connected spender. + // Money left while the app was closed — that deserves a heads-up, unless + // the user turned "payments sent" notifications off in Settings. + if (rec.prefs && rec.prefs.paySent === false) return true; const paidSat = a.amountSat || dec.amountSat; const feeNote = a.feeSat ? ` (+${a.feeSat} fee)` : ''; return { |
