From 5a9e723b9765c3323230fd798f240f58198f9414 Mon Sep 17 00:00:00 2001 From: Yordan Neshkolov Date: Fri, 12 Jun 2020 13:45:00 +0300 Subject: [PATCH] NY-8440 [WEB]: Implement Call Pickup: passive side in the pickup (the client from which ths call is picking up) --- src/call/P2pCall.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/call/P2pCall.js b/src/call/P2pCall.js index b024681..4867085 100644 --- a/src/call/P2pCall.js +++ b/src/call/P2pCall.js @@ -116,8 +116,8 @@ class P2pCall extends Call { } get hasRemoteVideo() { - if (!this._pc) { - return false; + if (!this._connectionId) { + return; } const callParticipantData = this._getCallParticipantData(); @@ -164,7 +164,7 @@ class P2pCall extends Call { }; _notifyParticipantWithVideo(video, participantId) { - if (!this._pc) { + if (!this._connectionId) { return; } const hasVideo = video || this.hasRemoteVideo; -- GitLab