瀏覽代碼

Simplify condition

Now that "newSessions" only contains remote participants it is no longer
needed to check if the participant is an MCU publisher or not, as it
will never be.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Daniel Calviño Sánchez 4 年之前
父節點
當前提交
6087167d6e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/nextcloud/talk/controllers/CallController.java

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/CallController.java

@@ -1707,7 +1707,7 @@ public class CallController extends BaseController {
         }
 
         for (String sessionId : newSessions) {
-            getPeerConnectionWrapperForSessionIdAndType(sessionId, "video", hasMCU && sessionId.equals(webSocketClient.getSessionId()));
+            getPeerConnectionWrapperForSessionIdAndType(sessionId, "video", false);
         }
 
         if (newSessions.size() > 0 && !currentCallStatus.equals(CallStatus.IN_CONVERSATION)) {