Merge pull request #6079 from matrix-org/gsouquet/switch-rooms

This commit is contained in:
Germain
2021-06-03 08:44:01 +01:00
committed by GitHub
16 changed files with 184 additions and 171 deletions
+4
View File
@@ -65,6 +65,10 @@ class FlairStore extends EventEmitter {
delete this._userGroups[userId];
}
cachedPublicisedGroups(userId) {
return this._userGroups[userId];
}
getPublicisedGroupsCached(matrixClient, userId) {
if (this._userGroups[userId]) {
return Promise.resolve(this._userGroups[userId]);