fix(app) fix member count to filter out hidden participants

When Jibri counts the participants in the meeting other Jibris should
not be accounted for.
This commit is contained in:
Saúl Ibarra Corretgé 2022-02-01 14:44:20 +01:00 committed by Saúl Ibarra Corretgé
parent b5c68c2b6a
commit 78b117cec6
1 changed files with 4 additions and 1 deletions

View File

@ -1141,8 +1141,11 @@ export default {
return room.getParticipants(); return room.getParticipants();
}, },
/**
* Used by Jibri to detect when it's alone and the meeting should be terminated.
*/
get membersCount() { get membersCount() {
return room.getParticipants().length + 1; return room.getParticipants().filter(p => !p.isHidden()).length + 1;
}, },
/** /**