Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
59a9c2d947
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      react/features/base/participants/middleware.js

+ 3
- 1
react/features/base/participants/middleware.js Parādīt failu

118
     case PARTICIPANT_JOINED: {
118
     case PARTICIPANT_JOINED: {
119
         _maybePlaySounds(store, action);
119
         _maybePlaySounds(store, action);
120
 
120
 
121
+        const result = _participantJoinedOrUpdated(store, next, action);
122
+
121
         const { participant: p } = action;
123
         const { participant: p } = action;
122
 
124
 
123
         if (!p.local) {
125
         if (!p.local) {
124
             store.dispatch(showParticipantJoinedNotification(getParticipantDisplayName(store.getState, p.id)));
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
     case PARTICIPANT_LEFT:
132
     case PARTICIPANT_LEFT:

Notiek ielāde…
Atcelt
Saglabāt