mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 06:51:21 +02:00
turn NPE on flair resolution errors into a logged error
This commit is contained in:
parent
44aea85792
commit
7d7cd30e46
@ -129,7 +129,11 @@ class FlairStore extends EventEmitter {
|
|||||||
}
|
}
|
||||||
const updatedUserGroups = resp.users;
|
const updatedUserGroups = resp.users;
|
||||||
usersInFlight.forEach((userId) => {
|
usersInFlight.forEach((userId) => {
|
||||||
this._usersPending[userId].resolve(updatedUserGroups[userId] || []);
|
if (this._usersPending[userId]) {
|
||||||
|
this._usersPending[userId].resolve(updatedUserGroups[userId] || []);
|
||||||
|
} else {
|
||||||
|
console.error("Promise vanished for resolving groups for " + userId);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user