1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge pull request #461 from matrix-org/dbkr/dont_reuse_parted_rooms

Don't re-use parted rooms for DMs
This commit is contained in:
David Baker
2016-09-12 18:30:55 +01:00
committed by GitHub

View File

@@ -248,10 +248,13 @@ module.exports = React.createClass({
for (let i = 0; i < dmRooms.length; i++) {
let room = MatrixClientPeg.get().getRoom(dmRooms[i]);
if (room) {
const me = room.getMember(MatrixClientPeg.get().credentials.userId);
if (me.membership == 'join') {
return room;
}
}
}
}
return null;
},