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(notifications) skip participant joined notifications before we join

Saúl Ibarra Corretgé5dc03f56f698
diff --git a/react/features/notifications/middleware.js b/react/features/notifications/middleware.js
index aeb36b1b4c..518a0faf3b 100644
--- a/react/features/notifications/middleware.js
+++ b/react/features/notifications/middleware.js
@@ -33,17 +33,19 @@ MiddlewareRegistry.register(store => next => action => {
const result = next(action);
const { participant: p } = action;
const { dispatch, getState } = store;
+ const state = getState();
+ const { conference } = state['features/base/conference'];
- if (!p.local && !joinLeaveNotificationsDisabled() && !p.isReplacing) {
+ if (conference && !p.local && !joinLeaveNotificationsDisabled() && !p.isReplacing) {
dispatch(showParticipantJoinedNotification(
- getParticipantDisplayName(getState, p.id)
+ getParticipantDisplayName(state, p.id)
));
}
if (typeof interfaceConfig === 'object'
&& !interfaceConfig.DISABLE_FOCUS_INDICATOR && p.role === PARTICIPANT_ROLE.MODERATOR) {
// Do not show the notification for mobile and also when the focus indicator is disabled.
- const displayName = getParticipantDisplayName(getState, p.id);
+ const displayName = getParticipantDisplayName(state, p.id);
if (!p.isReplacing) {
dispatch(showNotification({