Hide blocked users from search results

Changelog-Fixed: Hide blocked users from search results
This commit is contained in:
William Casarin
2023-02-05 10:49:18 -08:00
parent 07676a1f95
commit 29a8206586
4 changed files with 17 additions and 4 deletions

View File

@@ -25,6 +25,9 @@ struct SearchView: View {
.onDisappear() {
search.unsubscribe()
}
.onReceive(handle_notify(.new_mutes)) { notif in
search.filter_muted()
}
}
}
@@ -43,7 +46,7 @@ struct SearchView_Previews: PreviewProvider {
let filter = NostrFilter.filter_hashtag(["bitcoin"])
let pool = test_state.pool
let model = SearchModel(pool: pool, search: filter)
let model = SearchModel(contacts: test_state.contacts, pool: pool, search: filter)
SearchView(appstate: test_state, search: model)
}