search: expand search results to 128

This continues our hack due to the way the compiler bridges to static
sized arrays. yes its horrible. no i don't care.

Changelog-Changed: Expand nostrdb text search results to 128 items
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-27 12:36:20 -07:00
parent f957756df7
commit 7d82d8b76f
3 changed files with 111 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ struct SearchResultsView: View {
let debouncer: Debouncer = Debouncer(interval: 0.25)
func do_search(query: String) {
let limit = 16
let limit = 128
var note_keys = damus_state.ndb.text_search(query: query, limit: limit, order: .newest_first)
var res = [NostrEvent]()
// TODO: fix duplicate results from search