feat(conference): don't add hidden participants to redux

This includes recording agents, for example.
This commit is contained in:
Saúl Ibarra Corretgé 2018-05-30 11:03:56 +02:00 committed by Saúl Ibarra Corretgé
parent d15753f719
commit 4d21c28421
1 changed files with 3 additions and 2 deletions

View File

@ -140,7 +140,7 @@ function _addConferenceListeners(conference, dispatch) {
conference.on(
JitsiConferenceEvents.USER_JOINED,
(id, user) => dispatch(participantJoined({
(id, user) => !user.isHidden() && dispatch(participantJoined({
conference,
id,
name: user.getDisplayName(),
@ -148,7 +148,8 @@ function _addConferenceListeners(conference, dispatch) {
})));
conference.on(
JitsiConferenceEvents.USER_LEFT,
id => dispatch(participantLeft(id, conference)));
(id, user) => !user.isHidden()
&& dispatch(participantLeft(id, conference)));
conference.on(
JitsiConferenceEvents.USER_ROLE_CHANGED,
(...args) => dispatch(participantRoleChanged(...args)));