diff --git a/src/utils/DMRoomMap.js b/src/utils/DMRoomMap.js index 93ff565080..7974ab5681 100644 --- a/src/utils/DMRoomMap.js +++ b/src/utils/DMRoomMap.js @@ -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] = []; }