diff --git a/src/call/P2pCall.js b/src/call/P2pCall.js index b02468109f2a6f13c97bbe82f4f1ace7ca56c9e9..4867085be9c46a87ed085863b9f4854e64d05670 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;