Fix setting local participant call on hangup

This commit is contained in:
Robert Long 2021-08-03 16:36:33 -07:00
parent e345154f13
commit 971ca2083b

View file

@ -763,10 +763,11 @@ export class ConferenceCallManager extends EventEmitter {
);
if (newLocalCallParticipant) {
const localFeeds = call.getLocalFeeds();
const newCall = newLocalCallParticipant.call;
const localFeeds = newCall.getLocalFeeds();
if (localFeeds.length > 0) {
this.localParticipant.call = call;
this.localParticipant.call = newCall;
this.localParticipant.feed = localFeeds[0];
} else {
this.localParticipant.call = null;