Don't re-use parted rooms for DMs
This commit is contained in:
parent
3fc657bce4
commit
6ffa7c23cd
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue