浏览代码

fix: Fixes set effect and correct presence state.

dev1
Дамян Минков 3 年前
父节点
当前提交
d630bc32a1
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      JitsiConference.js

+ 4
- 1
JitsiConference.js 查看文件

1265
             }
1265
             }
1266
 
1266
 
1267
             // updates presence when we replace the video tracks desktop with screen and screen with desktop
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
                 this._updateRoomPresence(this._getActiveMediaSession());
1272
                 this._updateRoomPresence(this._getActiveMediaSession());
1270
             }
1273
             }
1271
 
1274
 

正在加载...
取消
保存