diff --git a/src/components/views/dialogs/ChatInviteDialog.js b/src/components/views/dialogs/ChatInviteDialog.js index 3e4af5bc50..b26c22f9a7 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -248,7 +248,10 @@ module.exports = React.createClass({ for (let i = 0; i < dmRooms.length; i++) { let room = MatrixClientPeg.get().getRoom(dmRooms[i]); if (room) { - return room; + const me = room.getMember(MatrixClientPeg.get().credentials.userId); + if (me.membership == 'join') { + return room; + } } } }