Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Saúl Ibarra Corretgé4d21c2842106
diff --git a/react/features/base/conference/actions.js b/react/features/base/conference/actions.js
index 8c18b7f1d4..1a32d61a50 100644
--- a/react/features/base/conference/actions.js
+++ b/react/features/base/conference/actions.js
@@ -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)));