Selaa lähdekoodia

feat(external-api): Fix reporting kicker display name.

We cannot look up the name as the meeting is left and data has been cleaned up already.
The value is coming from ljm and the reported actor: JitsiParticipant.
factor2
damencho 6 kuukautta sitten
vanhempi
commit
67c3a50412
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      react/features/external-api/middleware.ts

+ 3
- 3
react/features/external-api/middleware.ts Näytä tiedosto

@@ -142,7 +142,7 @@ MiddlewareRegistry.register(store => next => action => {
142 142
             break;
143 143
         }
144 144
 
145
-        const pId = action.participant.getId();
145
+        const actor = action.participant;
146 146
 
147 147
         APP.API.notifyKickedOut(
148 148
             {
@@ -151,8 +151,8 @@ MiddlewareRegistry.register(store => next => action => {
151 151
                 local: true
152 152
             },
153 153
             {
154
-                id: pId,
155
-                name: getParticipantDisplayName(state, pId)
154
+                id: actor.getId(),
155
+                name: actor.getDisplayName()
156 156
             }
157 157
         );
158 158
         break;

Loading…
Peruuta
Tallenna