|
@@ -33,17 +33,19 @@ MiddlewareRegistry.register(store => next => action => {
|
33
|
33
|
const result = next(action);
|
34
|
34
|
const { participant: p } = action;
|
35
|
35
|
const { dispatch, getState } = store;
|
|
36
|
+ const state = getState();
|
|
37
|
+ const { conference } = state['features/base/conference'];
|
36
|
38
|
|
37
|
|
- if (!p.local && !joinLeaveNotificationsDisabled() && !p.isReplacing) {
|
|
39
|
+ if (conference && !p.local && !joinLeaveNotificationsDisabled() && !p.isReplacing) {
|
38
|
40
|
dispatch(showParticipantJoinedNotification(
|
39
|
|
- getParticipantDisplayName(getState, p.id)
|
|
41
|
+ getParticipantDisplayName(state, p.id)
|
40
|
42
|
));
|
41
|
43
|
}
|
42
|
44
|
|
43
|
45
|
if (typeof interfaceConfig === 'object'
|
44
|
46
|
&& !interfaceConfig.DISABLE_FOCUS_INDICATOR && p.role === PARTICIPANT_ROLE.MODERATOR) {
|
45
|
47
|
// Do not show the notification for mobile and also when the focus indicator is disabled.
|
46
|
|
- const displayName = getParticipantDisplayName(getState, p.id);
|
|
48
|
+ const displayName = getParticipantDisplayName(state, p.id);
|
47
|
49
|
|
48
|
50
|
if (!p.isReplacing) {
|
49
|
51
|
dispatch(showNotification({
|