|
@@ -1115,7 +1115,7 @@ JitsiConference.prototype._setupNewTrack = function(newTrack) {
|
1115
|
1115
|
this.eventEmitter.emit(JitsiConferenceEvents.TRACK_ADDED, newTrack);
|
1116
|
1116
|
|
1117
|
1117
|
// Setup E2EE handling, if supported.
|
1118
|
|
- if (this._e2eeCtx) {
|
|
1118
|
+ if (!this.isP2PActive() && this._e2eeCtx) {
|
1119
|
1119
|
const activeTPC = this.getActivePeerConnection();
|
1120
|
1120
|
const sender = activeTPC ? activeTPC.findSenderForTrack(newTrack.track) : null;
|
1121
|
1121
|
|
|
@@ -1654,7 +1654,7 @@ JitsiConference.prototype.onRemoteTrackAdded = function(track) {
|
1654
|
1654
|
}
|
1655
|
1655
|
|
1656
|
1656
|
// Setup E2EE handling, if supported.
|
1657
|
|
- if (this._e2eeCtx) {
|
|
1657
|
+ if (!this.isP2PActive() && this._e2eeCtx) {
|
1658
|
1658
|
const activeTPC = this.getActivePeerConnection();
|
1659
|
1659
|
const receiver = activeTPC ? activeTPC.findReceiverForTrack(track.track) : null;
|
1660
|
1660
|
|