onlyzaps: Clean up reaction filter logic a bit
This commit is contained in:
@@ -202,9 +202,11 @@ class HomeModel: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
notifications.filter { ev in
|
notifications.filter { ev in
|
||||||
!damus_state.contacts.is_muted(ev.pubkey) &&
|
if damus_state.settings.hide_reactions && ev.known_kind == NostrKind.like {
|
||||||
!damus_state.muted_threads.isMutedThread(ev, privkey: damus_state.keypair.privkey) &&
|
return false
|
||||||
(ev.kind != NostrKind.like.rawValue || !damus_state.settings.hide_reactions)
|
}
|
||||||
|
|
||||||
|
return !damus_state.contacts.is_muted(ev.pubkey) && !damus_state.muted_threads.isMutedThread(ev, privkey: damus_state.keypair.privkey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user