From 0553d806d71d47a35e77ebd0e87d2c51a36d1b5c Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 17 Jul 2016 18:40:54 +0100 Subject: [PATCH] stop re-invites --- src/components/views/rooms/InviteMemberList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/InviteMemberList.js b/src/components/views/rooms/InviteMemberList.js index c1c83e533b..4742597229 100644 --- a/src/components/views/rooms/InviteMemberList.js +++ b/src/components/views/rooms/InviteMemberList.js @@ -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")); }); } },