diff options
Diffstat (limited to 'src/state/models/profiles-view.ts')
-rw-r--r-- | src/state/models/profiles-view.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/profiles-view.ts b/src/state/models/profiles-view.ts index 4dc5a3999..d9fe98b3f 100644 --- a/src/state/models/profiles-view.ts +++ b/src/state/models/profiles-view.ts @@ -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) + } + } } |