From 639ad56654eab93131225ea8a671bac4f5f817be Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Tue, 27 Feb 2024 12:29:10 -0500 Subject: [PATCH] fix(tracks): Do not filter the tracks for p2p. The tracks should get removed if the startAudioMuted/startVideoMuted flags are set for the conference. Fixes the failing startMuted testcase. --- JitsiConference.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JitsiConference.js b/JitsiConference.js index 11bf18793e..2efc83a1d3 100644 --- a/JitsiConference.js +++ b/JitsiConference.js @@ -2910,7 +2910,7 @@ JitsiConference.prototype._acceptP2PIncomingCall = function(jingleSession, jingl enableInsertableStreams: this.isE2EEEnabled() || FeatureFlags.isRunInLiteModeEnabled() }); - const localTracks = this._getInitialLocalTracks(); + const localTracks = this.getLocalTracks(); this.p2pJingleSession.acceptOffer( jingleOffer, @@ -3253,7 +3253,7 @@ JitsiConference.prototype._startP2PSession = function(remoteJid) { enableInsertableStreams: this.isE2EEEnabled() || FeatureFlags.isRunInLiteModeEnabled() }); - const localTracks = this._getInitialLocalTracks(); + const localTracks = this.getLocalTracks(); this.p2pJingleSession.invite(localTracks); };