Dont get room until joined
This commit is contained in:
parent
b208aa6bc5
commit
c4230b432e
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,7 @@ export class ConferenceCall extends EventEmitter {
|
|||
this.client = client;
|
||||
this.roomId = roomId;
|
||||
this.joined = false;
|
||||
this.room = client.getRoom(roomId);
|
||||
this.room = null;
|
||||
this.localParticipant = {
|
||||
local: true,
|
||||
userId: client.getUserId(),
|
||||
|
@ -33,6 +33,8 @@ export class ConferenceCall extends EventEmitter {
|
|||
|
||||
this.joined = true;
|
||||
|
||||
this.room = this.client.getRoom(this.roomId);
|
||||
|
||||
const activeConf = this.room.currentState
|
||||
.getStateEvents(CONF_ROOM, "")
|
||||
?.getContent()?.active;
|
||||
|
|
Loading…
Reference in a new issue