From 07d0818ee8f15fb777aa48b1a339d1ec58938eae Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 23 Jun 2023 19:43:20 +0200 Subject: [PATCH] nozaps: disable zap delay on appstore since we don't have 1-tap anymore --- damus/Components/ZapButton.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift index cfe0a11f..8edb66b2 100644 --- a/damus/Components/ZapButton.swift +++ b/damus/Components/ZapButton.swift @@ -252,7 +252,10 @@ func send_zap(damus_state: DamusState, target: ZapTarget, lnurl: String, is_cust }) } - let nwc_req = nwc_pay(url: nwc_state.url, pool: damus_state.pool, post: damus_state.postbox, invoice: inv, on_flush: flusher) + // we don't have a delay on one-tap nozaps (since this will be from customize zap view) + let delay = damus_state.settings.nozaps ? nil : 5.0 + + let nwc_req = nwc_pay(url: nwc_state.url, pool: damus_state.pool, post: damus_state.postbox, invoice: inv, delay: delay, on_flush: flusher) guard let nwc_req, case .nwc(let pzap_state) = pending_zap_state else { print("nwc: failed to send nwc request for zapreq \(reqid.reqid)")