damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 07d0818ee8f15fb777aa48b1a339d1ec58938eae
parent 0ce7414488e830f230b68e270bbd402c5d80f25b
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 23 Jun 2023 19:43:20 +0200

nozaps: disable zap delay on appstore since we don't have 1-tap anymore

Diffstat:
Mdamus/Components/ZapButton.swift | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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)")