fix var decl

This commit is contained in:
Bruno Windels 2018-08-30 11:37:13 +02:00
parent d7868dbe33
commit caff60d56d

View file

@ -102,7 +102,7 @@ export default class DMRoomMap {
userId = "";
}
const roomId = selfRoomIds[i];
const roomIds = userToRooms[userId];
let roomIds = userToRooms[userId];
if (!roomIds) {
roomIds = userToRooms[userId] = [];
}