This commit is contained in:
David Baker 2017-10-27 16:29:56 +01:00
parent 5d0b9d73b4
commit 2f3e0fb049

View file

@ -184,8 +184,8 @@ function _getDirectMessageRooms(addr) {
const dmRoomMap = new DMRoomMap(MatrixClientPeg.get()); const dmRoomMap = new DMRoomMap(MatrixClientPeg.get());
const dmRooms = dmRoomMap.getDMRoomsForUserId(addr); const dmRooms = dmRoomMap.getDMRoomsForUserId(addr);
const rooms = []; const rooms = [];
dmRooms.forEach(dmRoom => { dmRooms.forEach((dmRoom) => {
let room = MatrixClientPeg.get().getRoom(dmRoom); const room = MatrixClientPeg.get().getRoom(dmRoom);
if (room) { if (room) {
const me = room.getMember(MatrixClientPeg.get().credentials.userId); const me = room.getMember(MatrixClientPeg.get().credentials.userId);
if (me.membership == 'join') { if (me.membership == 'join') {