fix getDMRoomsForUserId not calling _getUserToRooms first (thanks e2e tests)

pull/21833/head
Bruno Windels 2018-09-04 17:36:50 +02:00
parent 44a53cfc0d
commit 3b29b7aab6
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default class DMRoomMap {
getDMRoomsForUserId(userId) {
// Here, we return the empty list if there are no rooms,
// since the number of conversations you have with this user is zero.
return this.userToRooms[userId] || [];
return this._getUserToRooms()[userId] || [];
}
getUserIdForRoomId(roomId) {