commit c413589582d585a0cfc8edfaf9e9a04fa2053ea3 parent c218e0dcdd5eaae0a1101759ec3050229cef74f3 Author: William Casarin <jb55@jb55.com> Date: Thu, 22 Jun 2023 09:46:19 +0200 eventgroup: add is_note_zap We'll need this to hide note zaps as per apple's insanely dumb guidelines. Diffstat:
M | damus/Views/Notifications/EventGroupView.swift | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/damus/Views/Notifications/EventGroupView.swift b/damus/Views/Notifications/EventGroupView.swift @@ -14,6 +14,19 @@ enum EventGroupType { case zap(ZapGroup) case profile_zap(ZapGroup) + var is_note_zap: Bool { + switch self { + case .repost(let eventGroup): + return false + case .reaction(let eventGroup): + return false + case .zap(let zapGroup): + return true + case .profile_zap(let zapGroup): + return false + } + } + var zap_group: ZapGroup? { switch self { case .profile_zap(let grp):