Fix participants and local media stream
This commit is contained in:
parent
9ee81dc8eb
commit
27e78e0055
3 changed files with 7 additions and 4 deletions
|
@ -15899,6 +15899,8 @@ class MatrixClient extends events_1.EventEmitter {
|
|||
for (const track of this.localAVStream.getTracks()) {
|
||||
track.stop();
|
||||
}
|
||||
this.localAVStreamType = null;
|
||||
this.localAVStream = null;
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -273,7 +273,7 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
this.client.stopLocalMediaStream();
|
||||
|
||||
this.entered = false;
|
||||
this.participants = [this.localParticipant];
|
||||
this.participants = [];
|
||||
this.localParticipant.stream = null;
|
||||
this.localParticipant.call = null;
|
||||
clearTimeout(this._memberParticipantStateTimeout);
|
||||
|
@ -324,6 +324,7 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
|
||||
if (
|
||||
!participantInfo ||
|
||||
typeof participantInfo !== "object" ||
|
||||
(participantInfo.expiresAt && participantInfo.expiresAt < now)
|
||||
) {
|
||||
this.emit("debugstate", participant.userId, null, "inactive");
|
||||
|
@ -449,7 +450,7 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
);
|
||||
const participantInfo = memberStateEvent.getContent()[CONF_PARTICIPANT];
|
||||
|
||||
if (!participantInfo) {
|
||||
if (!participantInfo || typeof participantInfo !== "object") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue