You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
fix NPE from kegan's memberlist branch
This commit is contained in:
@@ -319,6 +319,8 @@ module.exports = React.createClass({
|
|||||||
} else {
|
} else {
|
||||||
// TODO: Cache this calculation
|
// TODO: Cache this calculation
|
||||||
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||||
|
if (!room) return <div></div>;
|
||||||
|
|
||||||
var allUsers = MatrixClientPeg.get().getUsers();
|
var allUsers = MatrixClientPeg.get().getUsers();
|
||||||
// only add Users if they are not joined
|
// only add Users if they are not joined
|
||||||
allUsers = allUsers.filter(function(u) {
|
allUsers = allUsers.filter(function(u) {
|
||||||
|
|||||||
Reference in New Issue
Block a user