diff --git a/app/src/main/java/com/nextcloud/talk/controllers/CallController.java b/app/src/main/java/com/nextcloud/talk/controllers/CallController.java index adfbe6816..85eddc3b4 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/CallController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/CallController.java @@ -1655,6 +1655,8 @@ public class CallController extends BaseController { List newSessions = new ArrayList<>(); Set oldSesssions = new HashSet<>(); + hasMCU = hasExternalSignalingServer && webSocketClient != null && webSocketClient.hasMCU(); + for (HashMap participant : users) { if (!participant.get("sessionId").equals(callSession)) { Object inCallObject = participant.get("inCall"); @@ -1693,8 +1695,6 @@ public class CallController extends BaseController { getPeersForCall(); } - hasMCU = hasExternalSignalingServer && webSocketClient != null && webSocketClient.hasMCU(); - for (String sessionId : newSessions) { getPeerConnectionWrapperForSessionIdAndType(sessionId, "video", hasMCU && sessionId.equals(webSocketClient.getSessionId())); }