diff --git a/src/main/java/org/jitsi/videobridge/ConferenceSpeechActivity.java b/src/main/java/org/jitsi/videobridge/ConferenceSpeechActivity.java index fd5d63b5fb..cfb30f20a9 100644 --- a/src/main/java/org/jitsi/videobridge/ConferenceSpeechActivity.java +++ b/src/main/java/org/jitsi/videobridge/ConferenceSpeechActivity.java @@ -863,25 +863,8 @@ else if (conferenceEndpoints.contains(endpoint)) if (dominantEndpoint != null) { - int dominantEndpointIndex = -1; - - for (int i = 0, count = endpoints.size(); i < count; ++i) - { - if (dominantEndpoint.equals(endpoints.get(i))) - { - dominantEndpointIndex = i; - break; - } - } - if ((dominantEndpointIndex != -1) - && (dominantEndpointIndex != 0)) - { - Endpoint weakReference - = endpoints.remove(dominantEndpointIndex); - - endpoints.add(0, weakReference); - endpointsChanged = true; - } + endpoints.remove(dominantEndpoint); + endpoints.add(0, dominantEndpoint); } /*