stop re-invites
This commit is contained in:
parent
2bc9dd4307
commit
0553d806d7
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ module.exports = React.createClass({
|
||||||
// Load the complete user list for inviting new users
|
// Load the complete user list for inviting new users
|
||||||
if (this._room) {
|
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") &&
|
||||||
|
!this._room.hasMembershipState(u.userId, "invite"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue