Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(breakout-rooms): add isHidden field to getRoomsInfo response (#17692)
Hugo Lavernhe0897f56eaa16
diff --git a/react/features/breakout-rooms/functions.ts b/react/features/breakout-rooms/functions.tsindex 27646a1452..aa7c87a36a 100644--- a/react/features/breakout-rooms/functions.ts+++ b/react/features/breakout-rooms/functions.ts@@ -57,6 +57,7 @@ export const getRoomsInfo = (stateful: IStateful, includeHidden = false) => {};const breakoutRooms = getBreakoutRooms(stateful);const conference = getCurrentConference(stateful);+ const { iAmRecorder } = state['features/base/config'];const initialRoomsInfo = {rooms: []@@ -100,7 +101,9 @@ export const getRoomsInfo = (stateful: IStateful, includeHidden = false) => {id: participantItem.getId(),userContext: storeParticipant?.userContext,isJigasi: participantItem.getProperty('features_jigasi') === true,- isJibri: participantItem.isHidden() || participantItem.isHiddenFromRecorder(),+ // A participant can be hidden because it's a transcriber or Jibri using+ // the hidden domain, or it can be a user hidden from the recorder.+ isHidden: participantItem.isHidden() || (iAmRecorder && participantItem.isHiddenFromRecorder()),audioMuted: participantItem.isAudioMuted(),videoMuted: participantItem.isVideoMuted()} as IRoomInfoParticipant;diff --git a/react/features/breakout-rooms/types.ts b/react/features/breakout-rooms/types.tsindex 057cc6062d..6b83f299c2 100644--- a/react/features/breakout-rooms/types.ts+++ b/react/features/breakout-rooms/types.ts@@ -37,7 +37,7 @@ export interface IRoomInfoParticipant {avatarUrl: string;displayName: string;id: string;- isJibri?: boolean;+ isHidden?: boolean;isJigasi?: boolean;jid: string;role: string;diff --git a/tests/prosody/mod_trace_spec.js b/tests/prosody/mod_trace_spec.jsindex 9cfed680fa..5eb27b8c49 100644--- a/tests/prosody/mod_trace_spec.js+++ b/tests/prosody/mod_trace_spec.js@@ -75,7 +75,7 @@ describe('mod_trace', () => {const cm = iq.getChild('conference-modify', 'jitsi:colibri2');assert.ok(!cm.getChild('traceparent'),- 'no traceparent should be added when the sender did not include one' );+ 'no traceparent should be added when the sender did not include one');// Give Prosody a moment to (not) export before asserting the negative.await new Promise(r => setTimeout(r, 300));