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:
parent
b5c68c2b6a
commit
78b117cec6
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue