From 9644bd21153c7068058cb854e29961eca9db29fa Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 22 Nov 2024 12:22:44 -0600 Subject: [PATCH] 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. --- react/features/external-api/middleware.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react/features/external-api/middleware.ts b/react/features/external-api/middleware.ts index cb5182164042..bcef6ca8652f 100644 --- a/react/features/external-api/middleware.ts +++ b/react/features/external-api/middleware.ts @@ -142,7 +142,7 @@ MiddlewareRegistry.register(store => next => action => { break; } - const pId = action.participant.getId(); + const actor = action.participant; APP.API.notifyKickedOut( { @@ -151,8 +151,8 @@ MiddlewareRegistry.register(store => next => action => { local: true }, { - id: pId, - name: getParticipantDisplayName(state, pId) + id: actor.getId(), + name: actor.getDisplayName() } ); break;