Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(raised-hand) Preserve raised hand order for active speaker

hmuresan82367645011c
diff --git a/react/features/participants-pane/functions.js b/react/features/participants-pane/functions.js
index 2f0f8a942a..2636e037b0 100644
--- a/react/features/participants-pane/functions.js
+++ b/react/features/participants-pane/functions.js
@@ -225,13 +225,14 @@ export function getSortedParticipantIds(stateful: Object | Function): Array<stri
}
const dominant = [];
+ const dominantId = dominantSpeaker?.id;
const local = remoteRaisedHandParticipants.has(id) ? [] : [ id ];
- // Remove dominant speaker.
- if (dominantSpeaker && dominantSpeaker.id !== id) {
- remoteRaisedHandParticipants.delete(dominantSpeaker.id);
- reorderedParticipants.delete(dominantSpeaker.id);
- dominant.push(dominantSpeaker.id);
+ // In case dominat speaker has raised hand, keep the order in the raised hand queue.
+ // In case they don't have raised hand, goes first in the participants list.
+ if (dominantId && dominantId !== id && !remoteRaisedHandParticipants.has(dominantId)) {
+ reorderedParticipants.delete(dominantId);
+ dominant.push(dominantId);
}
// Move self and participants with raised hand to the top of the list.