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(app) fix member count to filter out hidden participants

Saúl Ibarra Corretgé78b117cec654
diff --git a/conference.js b/conference.js
index 2716bf33c5..18998f287f 100644
--- a/conference.js
+++ b/conference.js
@@ -1141,8 +1141,11 @@ export default {
return room.getParticipants();
},
+ /**
+ * Used by Jibri to detect when it's alone and the meeting should be terminated.
+ */
get membersCount() {
- return room.getParticipants().length + 1;
+ return room.getParticipants().filter(p => !p.isHidden()).length + 1;
},
/**