stop re-invites

pull/21833/head
Matthew Hodgson 2016-07-17 18:40:54 +01:00
parent 2bc9dd4307
commit 0553d806d7
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ module.exports = React.createClass({
// Load the complete user list for inviting new users
if (this._room) {
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"));
});
}
},