1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-06-17 08:42:02 +03:00

stop re-invites

This commit is contained in:
Matthew Hodgson
2016-07-17 18:40:54 +01:00
parent 2bc9dd4307
commit 0553d806d7

View File

@ -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"));
}); });
} }
}, },