nozaps: remove zap button on posts

This commit is contained in:
William Casarin
2023-06-27 05:31:14 +02:00
parent 40a51edafe
commit 7d80985b06

View File

@@ -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)
}