mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
turn NPE on flair resolution errors into a logged error
This commit is contained in:
parent
44aea85792
commit
7d7cd30e46
1 changed files with 5 additions and 1 deletions
|
@ -129,7 +129,11 @@ class FlairStore extends EventEmitter {
|
|||
}
|
||||
const updatedUserGroups = resp.users;
|
||||
usersInFlight.forEach((userId) => {
|
||||
if (this._usersPending[userId]) {
|
||||
this._usersPending[userId].resolve(updatedUserGroups[userId] || []);
|
||||
} else {
|
||||
console.error("Promise vanished for resolving groups for " + userId);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue