From 49353cd2feddfee5e7fc34c377a87adafabc3059 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 28 Jul 2021 18:09:04 -0700 Subject: [PATCH] Remove opponentMember check --- src/ConferenceCallManager.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/ConferenceCallManager.js b/src/ConferenceCallManager.js index bc97f97..ca54d9d 100644 --- a/src/ConferenceCallManager.js +++ b/src/ConferenceCallManager.js @@ -319,14 +319,11 @@ export class ConferenceCallManager extends EventEmitter { return; } - if (call.opponentMember) { - const userId = call.opponentMember.userId; - this._addCall(call, userId); - this._setDebugState(userId, "answered"); - this._addDebugEvent(userId, "answer", { callId: call.callId }); - call.answer(); - return; - } + const userId = call.opponentMember.userId; + this._addCall(call, userId); + this._setDebugState(userId, "answered"); + this._addDebugEvent(userId, "answer", { callId: call.callId }); + call.answer(); }; _addCall(call, userId) {