Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref: move participant joined notification to the middleware
paweldomasf3f8dc207219
diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex e37021f6f1..02e1d865a3 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -14,10 +14,7 @@ import VideoLayout from './videolayout/VideoLayout';import Filmstrip from './videolayout/Filmstrip';import { JitsiTrackErrors } from '../../react/features/base/lib-jitsi-meet';-import {- getLocalParticipant,- showParticipantJoinedNotification-} from '../../react/features/base/participants';+import { getLocalParticipant } from '../../react/features/base/participants';import { toggleChat } from '../../react/features/chat';import { openDisplayNamePrompt } from '../../react/features/display-name';import { setEtherpadHasInitialzied } from '../../react/features/etherpad';@@ -380,8 +377,6 @@ UI.addUser = function(user) {if (status) {// FIXME: move updateUserStatus in participantPresenceChanged actionUI.updateUserStatus(user, status);- } else {- APP.store.dispatch(showParticipantJoinedNotification(displayName));}// set initial display namediff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.jsindex 51089aa6a8..f53ee2458c 100644--- a/react/features/base/participants/middleware.js+++ b/react/features/base/participants/middleware.js@@ -16,7 +16,8 @@ import {localParticipantJoined,localParticipantLeft,participantLeft,- participantUpdated+ participantUpdated,+ showParticipantJoinedNotification} from './actions';import {DOMINANT_SPEAKER_CHANGED,@@ -110,10 +111,17 @@ MiddlewareRegistry.register(store => next => action => {break;}- case PARTICIPANT_JOINED:+ case PARTICIPANT_JOINED: {_maybePlaySounds(store, action);+ const { participant: { name } } = action;++ if (name) {+ store.dispatch(showParticipantJoinedNotification(name));+ }+return _participantJoinedOrUpdated(store, next, action);+ }case PARTICIPANT_LEFT:_maybePlaySounds(store, action);