From 971ca2083baca67057c6c399ce3499f2c4f3408c Mon Sep 17 00:00:00 2001 From: Robert Long Date: Tue, 3 Aug 2021 16:36:33 -0700 Subject: [PATCH] Fix setting local participant call on hangup --- src/ConferenceCallManager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ConferenceCallManager.js b/src/ConferenceCallManager.js index 904575f..8c7d820 100644 --- a/src/ConferenceCallManager.js +++ b/src/ConferenceCallManager.js @@ -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;