Invalidate profiles cache on direct load

This commit is contained in:
Paul Frazee
2022-11-17 13:01:57 -06:00
parent 6be082e728
commit a527c1086a
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -41,4 +41,10 @@ export class ProfilesViewModel {
throw e
}
}
overwrite(did: string, res: GetProfile.Response) {
if (this.cache.has(did)) {
this.cache.set(did, res)
}
}
}