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.client = client;
 | 
				
			||||||
    this.roomId = roomId;
 | 
					    this.roomId = roomId;
 | 
				
			||||||
    this.joined = false;
 | 
					    this.joined = false;
 | 
				
			||||||
    this.room = client.getRoom(roomId);
 | 
					    this.room = null;
 | 
				
			||||||
    this.localParticipant = {
 | 
					    this.localParticipant = {
 | 
				
			||||||
      local: true,
 | 
					      local: true,
 | 
				
			||||||
      userId: client.getUserId(),
 | 
					      userId: client.getUserId(),
 | 
				
			||||||
| 
						 | 
					@ -33,6 +33,8 @@ export class ConferenceCall extends EventEmitter {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.joined = true;
 | 
					    this.joined = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    this.room = this.client.getRoom(this.roomId);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const activeConf = this.room.currentState
 | 
					    const activeConf = this.room.currentState
 | 
				
			||||||
      .getStateEvents(CONF_ROOM, "")
 | 
					      .getStateEvents(CONF_ROOM, "")
 | 
				
			||||||
      ?.getContent()?.active;
 | 
					      ?.getContent()?.active;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue