damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 262bbf26ea282003356eeef2f5d8acc57510516f
parent 5228d8cf4d7ac09152f9ba047203b4423a798bd2
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 27 Sep 2024 13:49:41 -0700

profiles: expand search results to 128

This should be plenty

Fixes: https://github.com/damus-io/damus/issues/2547
Changelog-Changed: Expanded profile search results to 128
Changelog-Fixed: Friend profiles will now more likely show up in profile search
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/SearchResultsView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/SearchResultsView.swift b/damus/Views/SearchResultsView.swift @@ -285,7 +285,7 @@ func search_profiles<Y>(profiles: Profiles, contacts: Contacts, search: String, return [pk] } - return profiles.search(search, limit: 10, txn: txn).sorted { a, b in + return profiles.search(search, limit: 500, txn: txn).sorted { a, b in let aFriendTypePriority = get_friend_type(contacts: contacts, pubkey: a)?.priority ?? 0 let bFriendTypePriority = get_friend_type(contacts: contacts, pubkey: b)?.priority ?? 0