damus

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

commit 8b24befaf742031a6224bfc810ada614d49e42ab
parent 57789de5cd6cfaa7da2c54fd1a743753a55f9908
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 23 Jun 2023 11:48:43 +0200

nozaps: don't include zaps in thread replies

Diffstat:
Mdamus/Models/DamusState.swift | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/damus/Models/DamusState.swift b/damus/Models/DamusState.swift @@ -38,7 +38,8 @@ struct DamusState { let stored = self.events.store_zap(zap: zap) // thread zaps - if let ev = zap.event, zap.is_in_thread { + if let ev = zap.event, !settings.nozaps, zap.is_in_thread { + // [nozaps]: thread zaps are only available outside of the app store replies.count_replies(ev) events.add_replies(ev: ev) }