fix NPE from kegan's memberlist branch
This commit is contained in:
parent
7b91d3c5f8
commit
0a79b0f9e2
1 changed files with 2 additions and 0 deletions
|
@ -319,6 +319,8 @@ module.exports = React.createClass({
|
|||
} else {
|
||||
// TODO: Cache this calculation
|
||||
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||
if (!room) return <div></div>;
|
||||
|
||||
var allUsers = MatrixClientPeg.get().getUsers();
|
||||
// only add Users if they are not joined
|
||||
allUsers = allUsers.filter(function(u) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue