Merge branch 'krille/fix-cache-user-profile' into 'main'
Krille/fix cache user profile See merge request famedly/company/frontend/famedlysdk!1077
This commit is contained in:
commit
0b031476b8
|
|
@ -1,3 +1,6 @@
|
|||
## [0.10.5] - 11th Jul 2022
|
||||
- fix: Cache user profile even with cache=false when there is a cache
|
||||
|
||||
## [0.10.4] - 11th Jul 2022
|
||||
- refactor: Better fetch own profile (Christian Pauly)
|
||||
|
||||
|
|
|
|||
|
|
@ -769,7 +769,9 @@ class Client extends MatrixApi {
|
|||
}
|
||||
}
|
||||
profile = await getUserProfile(userId);
|
||||
if (cache) _profileCache[userId] = profile;
|
||||
if (cache || _profileCache.containsKey(userId)) {
|
||||
_profileCache[userId] = profile;
|
||||
}
|
||||
return Profile(
|
||||
userId: userId,
|
||||
displayName: profile.displayname,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: matrix
|
||||
description: Matrix Dart SDK
|
||||
version: 0.10.4
|
||||
version: 0.10.5
|
||||
homepage: https://famedly.com
|
||||
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue