damus

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

commit 7d80985b06d5efb4a1c9b0f098d674858a5a542e
parent 40a51edafeab542a73d918be9d21893ff3bae054
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 27 Jun 2023 05:31:14 +0200

nozaps: remove zap button on posts

Diffstat:
Mdamus/Views/ActionBar/EventActionBar.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/ActionBar/EventActionBar.swift b/damus/Views/ActionBar/EventActionBar.swift @@ -86,7 +86,7 @@ struct EventActionBar: View { } } - if let lnurl = self.lnurl { + if !damus_state.settings.nozaps, let lnurl = self.lnurl { Spacer() ZapButton(damus_state: damus_state, target: ZapTarget.note(id: event.id, author: event.pubkey), lnurl: lnurl, zaps: self.damus_state.events.get_cache_data(self.event.id).zaps_model) }