mirror of
git://jb55.com/damus
synced 2024-09-19 19:46:51 +00:00
eventgroup: add is_note_zap
We'll need this to hide note zaps as per apple's insanely dumb guidelines.
This commit is contained in:
parent
c218e0dcdd
commit
c413589582
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user