|
@@ -1265,7 +1265,10 @@ JitsiConference.prototype.replaceTrack = function(oldTrack, newTrack) {
|
1265
|
1265
|
}
|
1266
|
1266
|
|
1267
|
1267
|
// updates presence when we replace the video tracks desktop with screen and screen with desktop
|
1268
|
|
- if (oldTrackBelongsToConference && oldTrack?.isVideoTrack()) {
|
|
1268
|
+ if (oldTrackBelongsToConference && oldTrack?.isVideoTrack()
|
|
1269
|
+
|
|
1270
|
+ // we do not want to send presence update during setEffect switching, which does remove and then add
|
|
1271
|
+ && !(oldTrack?._setEffectInProgress || newTrack?._setEffectInProgress)) {
|
1269
|
1272
|
this._updateRoomPresence(this._getActiveMediaSession());
|
1270
|
1273
|
}
|
1271
|
1274
|
|