|
|
@@ -458,9 +458,12 @@ export function getSortedParticipants(stateful: Object | Function) {
|
|
458
|
458
|
const remoteParticipants = getRemoteParticipants(stateful);
|
|
459
|
459
|
|
|
460
|
460
|
const items = [];
|
|
|
461
|
+ const dominantSpeaker = getDominantSpeakerParticipant(stateful);
|
|
461
|
462
|
|
|
462
|
463
|
remoteParticipants.forEach(p => {
|
|
463
|
|
- items.push(p);
|
|
|
464
|
+ if (p !== dominantSpeaker) {
|
|
|
465
|
+ items.push(p);
|
|
|
466
|
+ }
|
|
464
|
467
|
});
|
|
465
|
468
|
|
|
466
|
469
|
items.sort((a, b) =>
|
|
|
@@ -469,6 +472,10 @@ export function getSortedParticipants(stateful: Object | Function) {
|
|
469
|
472
|
|
|
470
|
473
|
items.unshift(localParticipant);
|
|
471
|
474
|
|
|
|
475
|
+ if (dominantSpeaker && dominantSpeaker !== localParticipant) {
|
|
|
476
|
+ items.unshift(dominantSpeaker);
|
|
|
477
|
+ }
|
|
|
478
|
+
|
|
472
|
479
|
return items;
|
|
473
|
480
|
}
|
|
474
|
481
|
|