feat: force refresh of user relay list cache when viewing profile

This commit is contained in:
codytseng 2025-05-21 22:52:43 +08:00
parent 2e4602e973
commit 44a9b6ee0e
4 changed files with 57 additions and 40 deletions

View file

@ -22,7 +22,7 @@ export function useSearchProfiles(search: string, limit: number) {
setIsFetching(true)
setProfiles([])
try {
const profiles = await client.fetchProfiles(
const profiles = await client.searchProfiles(
searchableRelayUrls.concat(SEARCHABLE_RELAY_URLS).slice(0, 4),
{
search,