feat: force refresh of user relay list cache when viewing profile
This commit is contained in:
parent
2e4602e973
commit
44a9b6ee0e
4 changed files with 57 additions and 40 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue