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>
This commit is contained in:
Daniel Calviño Sánchez 2021-04-09 13:57:44 +02:00 committed by Marcel Hibbe
parent 9687a9453d
commit 6087167d6e
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -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)) {