From 7a7b2c61fe8394844fa306debb84917454ade7b0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 14 Aug 2026 01:19:44 -0700 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv --- src/nwc-respond.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nwc-respond.js') 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 { -- cgit v1.2.3