mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
adjust room constructor
This commit is contained in:
parent
1f8e3e5d43
commit
90fc15ff3e
@ -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());
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user