mirror of https://github.com/vector-im/riot-web
Merge pull request #150 from matrix-org/dbkr/null_check_invite_member_list
Add a null check here since room can be null and this was throwingpull/21833/head
commit
f72e534ac0
|
@ -42,9 +42,11 @@ module.exports = React.createClass({
|
||||||
// TODO: Keep this list bleeding-edge up-to-date. Practically speaking,
|
// TODO: Keep this list bleeding-edge up-to-date. Practically speaking,
|
||||||
// it will do for now not being updated as random new users join different
|
// it will do for now not being updated as random new users join different
|
||||||
// rooms as this list will be reloaded every room swap.
|
// rooms as this list will be reloaded every room swap.
|
||||||
|
if (this._room) {
|
||||||
this._userList = MatrixClientPeg.get().getUsers().filter((u) => {
|
this._userList = MatrixClientPeg.get().getUsers().filter((u) => {
|
||||||
return !this._room.hasMembershipState(u.userId, "join");
|
return !this._room.hasMembershipState(u.userId, "join");
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onInvite: function(ev) {
|
onInvite: function(ev) {
|
||||||
|
|
Loading…
Reference in New Issue