mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Null guard new function to reduce error spam
This commit is contained in:
parent
275ff6b41e
commit
281e2ab27b
@ -157,6 +157,7 @@ class FlairStore extends EventEmitter {
|
||||
* @returns The profile if known, otherwise null.
|
||||
*/
|
||||
getGroupProfileCachedFast(matrixClient, groupId) {
|
||||
if (!matrixClient || !groupId) return null;
|
||||
if (this._groupProfiles[groupId]) {
|
||||
return this._groupProfiles[groupId];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user