Merge branch 'develop' into luke/groups-room-publicity

This commit is contained in:
Luke Barnard
2017-11-02 13:39:33 +00:00
16 changed files with 215 additions and 244 deletions
+5 -1
View File
@@ -129,7 +129,11 @@ class FlairStore extends EventEmitter {
}
const updatedUserGroups = resp.users;
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);
}
});
}