feat: 💨
This commit is contained in:
@@ -505,7 +505,7 @@ class ClientService extends EventTarget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async searchProfilesFromIndex(query: string) {
|
async searchProfilesFromIndex(query: string) {
|
||||||
const result = await this.userIndex.searchAsync(query, { limit: 10 })
|
const result = await this.userIndex.searchAsync(query, { limit: 100 })
|
||||||
return Promise.all(result.map((pubkey) => this.fetchProfile(pubkey as string))).then(
|
return Promise.all(result.map((pubkey) => this.fetchProfile(pubkey as string))).then(
|
||||||
(profiles) => profiles.filter(Boolean) as TProfile[]
|
(profiles) => profiles.filter(Boolean) as TProfile[]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user