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(multi-stream) Do not show join notifications for SS tiles.

Jaya Allamsetty74201130796c
diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.js
index 113958598b..dede2f7861 100644
--- a/react/features/base/participants/middleware.js
+++ b/react/features/base/participants/middleware.js
@@ -210,14 +210,22 @@ MiddlewareRegistry.register(store => next => action => {
}
case PARTICIPANT_JOINED: {
- _maybePlaySounds(store, action);
+ const { isFakeScreenShareParticipant } = action.participant;
+
+ // Do not play sounds when a fake participant tile is created for screenshare.
+ !isFakeScreenShareParticipant && _maybePlaySounds(store, action);
return _participantJoinedOrUpdated(store, next, action);
}
- case PARTICIPANT_LEFT:
- _maybePlaySounds(store, action);
+ case PARTICIPANT_LEFT: {
+ const { isFakeScreenShareParticipant } = action.participant;
+
+ // Do not play sounds when a tile for screenshare is removed.
+ !isFakeScreenShareParticipant && _maybePlaySounds(store, action);
+
break;
+ }
case PARTICIPANT_UPDATED:
return _participantJoinedOrUpdated(store, next, action);
diff --git a/react/features/notifications/middleware.js b/react/features/notifications/middleware.js
index be5acc3f6b..ffb4178cc0 100644
--- a/react/features/notifications/middleware.js
+++ b/react/features/notifications/middleware.js
@@ -128,7 +128,12 @@ MiddlewareRegistry.register(store => next => action => {
const { participant: p } = action;
const { conference } = state['features/base/conference'];
- if (conference && !p.local && !joinLeaveNotificationsDisabled() && !p.isReplacing) {
+ // Do not display notifications for the fake screenshare tiles.
+ if (conference
+ && !p.local
+ && !p.isFakeScreenShareParticipant
+ && !joinLeaveNotificationsDisabled()
+ && !p.isReplacing) {
dispatch(showParticipantJoinedNotification(
getParticipantDisplayName(state, p.id)
));
@@ -143,7 +148,11 @@ MiddlewareRegistry.register(store => next => action => {
action.participant.id
);
- if (participant && !participant.local && !action.participant.isReplaced) {
+ // Do not display notifications for the fake screenshare tiles.
+ if (participant
+ && !participant.local
+ && !participant.isFakeScreenShareParticipant
+ && !action.participant.isReplaced) {
dispatch(showParticipantLeftNotification(
getParticipantDisplayName(state, participant.id)
));