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): show notifications after reducers update to get name

Leonard Kim59a9c2d94723
diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.js
index e5e0ec4197..1beb1093b9 100644
--- a/react/features/base/participants/middleware.js
+++ b/react/features/base/participants/middleware.js
@@ -118,13 +118,15 @@ MiddlewareRegistry.register(store => next => action => {
case PARTICIPANT_JOINED: {
_maybePlaySounds(store, action);
+ const result = _participantJoinedOrUpdated(store, next, action);
+
const { participant: p } = action;
if (!p.local) {
store.dispatch(showParticipantJoinedNotification(getParticipantDisplayName(store.getState, p.id)));
}
- return _participantJoinedOrUpdated(store, next, action);
+ return result;
}
case PARTICIPANT_LEFT: