feat: bypass IndexedDB cache when viewing user profile
This commit is contained in:
parent
e3c8dc838d
commit
5c39413420
3 changed files with 4 additions and 9 deletions
|
|
@ -686,12 +686,7 @@ class ClientService extends EventTarget {
|
|||
}
|
||||
|
||||
async fetchProfile(id: string, skipCache: boolean = false): Promise<TProfile | undefined> {
|
||||
let profileEvent: NEvent | undefined
|
||||
if (skipCache) {
|
||||
profileEvent = await this.fetchProfileEvent(id, skipCache)
|
||||
} else {
|
||||
profileEvent = await this.fetchProfileEvent(id)
|
||||
}
|
||||
const profileEvent = await this.fetchProfileEvent(id, skipCache)
|
||||
if (profileEvent) {
|
||||
return getProfileFromProfileEvent(profileEvent)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue