From 90fc15ff3e0fdaf2e06d9889e51253d46bc7110e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 7 Aug 2018 15:33:37 +0200 Subject: [PATCH] adjust room constructor --- src/VectorConferenceHandler.js | 2 +- test/components/views/rooms/RoomList-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VectorConferenceHandler.js b/src/VectorConferenceHandler.js index af6659d343..9ba46b2ab6 100644 --- a/src/VectorConferenceHandler.js +++ b/src/VectorConferenceHandler.js @@ -84,7 +84,7 @@ ConferenceCall.prototype._getConferenceUserRoom = function() { preset: "private_chat", invite: [this.confUserId] }).then(function(res) { - return new Room(res.room_id, client.getUserId()); + return new Room(res.room_id, null, client.getUserId()); }); }; diff --git a/test/components/views/rooms/RoomList-test.js b/test/components/views/rooms/RoomList-test.js index 8a596d4151..1e9f80f161 100644 --- a/test/components/views/rooms/RoomList-test.js +++ b/test/components/views/rooms/RoomList-test.js @@ -23,7 +23,7 @@ function generateRoomId() { describe('RoomList', () => { function createRoom(opts) { - const room = new Room(generateRoomId(), client.getUserId()); + const room = new Room(generateRoomId(), null, client.getUserId()); if (opts) { Object.assign(room, opts); }