Mute hellthreads everywhere

Changelog-Fixed: Mute hellthreads everywhere
Fixes: https://damus.io/note1rn3ckl76myga6xcefr0le52d8czd0wqe8apguewqknyv7m55mmpq3rv3hv
This commit is contained in:
William Casarin
2023-08-20 11:45:04 -07:00
parent d5b944170f
commit ae2f7255a7
4 changed files with 20 additions and 18 deletions

View File

@@ -27,7 +27,9 @@ class SearchModel: ObservableObject {
}
func filter_muted() {
self.events.filter { should_show_event(contacts: state.contacts, ev: $0) }
self.events.filter {
should_show_event(privkey: state.keypair.privkey, hellthreads: state.muted_threads, contacts: state.contacts, ev: $0)
}
self.objectWillChange.send()
}
@@ -55,7 +57,7 @@ class SearchModel: ObservableObject {
return
}
guard should_show_event(contacts: state.contacts, ev: ev) else {
guard should_show_event(privkey: state.keypair.privkey, hellthreads: state.muted_threads, contacts: state.contacts, ev: ev) else {
return
}