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 = ""; userId = "";
} }
const roomId = selfRoomIds[i]; const roomId = selfRoomIds[i];
const roomIds = userToRooms[userId]; let roomIds = userToRooms[userId];
if (!roomIds) { if (!roomIds) {
roomIds = userToRooms[userId] = []; roomIds = userToRooms[userId] = [];
} }