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

@ -66,7 +66,7 @@ const ProfileListPage = forwardRef(({ index }: { index?: number }, ref) => {
if (urls.length === 0) {
return setHasMore(false)
}
const profiles = await client.fetchProfiles(urls, { ...filter, limit: LIMIT })
const profiles = await client.searchProfiles(urls, { ...filter, limit: LIMIT })
const newPubkeySet = new Set<string>()
profiles.forEach((profile) => {
if (!pubkeySet.has(profile.pubkey)) {