Improve the profile preview with "swipe up to view" and local cache optimization (#1096)
* Update the ProfilePreview to use a swipe-up to navigate * Use the profile cache to optimize load performance * Hack to align the header in the profile preview against the screen view * Fix profiles cache logic to ensure cache is used * Fix dark mode on profile preview
This commit is contained in:
+1
-3
@@ -45,8 +45,6 @@ export class ProfilesCache {
|
||||
}
|
||||
|
||||
overwrite(did: string, res: GetProfile.Response) {
|
||||
if (this.cache.has(did)) {
|
||||
this.cache.set(did, res)
|
||||
}
|
||||
this.cache.set(did, res)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user