Temporarily comment out address book until perf can be looked at given other PRs now depend on this PR
This commit is contained in:
parent
d2708cf4d4
commit
e4e3393232
1 changed files with 3 additions and 3 deletions
|
@ -329,18 +329,18 @@ 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);
|
||||||
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) {
|
||||||
return !room.hasMembershipState(u.userId, "join");
|
return !room.hasMembershipState(u.userId, "join");
|
||||||
});
|
}); */
|
||||||
var SearchableEntityList = sdk.getComponent("rooms.SearchableEntityList");
|
var SearchableEntityList = sdk.getComponent("rooms.SearchableEntityList");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SearchableEntityList searchPlaceholderText={"Invite / Search"}
|
<SearchableEntityList searchPlaceholderText={"Invite / Search"}
|
||||||
onSubmit={this.onInvite}
|
onSubmit={this.onInvite}
|
||||||
onQueryChanged={this.onSearchQueryChanged}
|
onQueryChanged={this.onSearchQueryChanged}
|
||||||
entities={Entities.fromUsers(allUsers, true, this.onInvite)} />
|
entities={[] /* Entities.fromUsers(allUsers, true, this.onInvite) */} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue