Bläddra i källkod

fix(notifications): show notifications after reducers update to get name

Otherwise the participant will not have been added yet
to state so the participant name will not display in
the notification.
master
Leonard Kim 6 år sedan
förälder
incheckning
59a9c2d947
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      react/features/base/participants/middleware.js

+ 3
- 1
react/features/base/participants/middleware.js Visa fil

@@ -118,13 +118,15 @@ MiddlewareRegistry.register(store => next => action => {
118 118
     case PARTICIPANT_JOINED: {
119 119
         _maybePlaySounds(store, action);
120 120
 
121
+        const result = _participantJoinedOrUpdated(store, next, action);
122
+
121 123
         const { participant: p } = action;
122 124
 
123 125
         if (!p.local) {
124 126
             store.dispatch(showParticipantJoinedNotification(getParticipantDisplayName(store.getState, p.id)));
125 127
         }
126 128
 
127
-        return _participantJoinedOrUpdated(store, next, action);
129
+        return result;
128 130
     }
129 131
 
130 132
     case PARTICIPANT_LEFT:

Laddar…
Avbryt
Spara