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(participants): Handles kicker undefined on participantKicked.

damenchoec22c1fddafc
diff --git a/react/features/base/participants/actions.ts b/react/features/base/participants/actions.ts
index 6d11abab02..50e5924545 100644
--- a/react/features/base/participants/actions.ts
+++ b/react/features/base/participants/actions.ts
@@ -547,7 +547,7 @@ export function participantKicked(kicker: any, kicked: any) {
const state = getState();
const localParticipant = getLocalParticipant(state);
const kickedId = kicked.getId();
- const kickerId = kicker.getId();
+ const kickerId = kicker?.getId();
dispatch({
type: PARTICIPANT_KICKED,
@@ -555,7 +555,7 @@ export function participantKicked(kicker: any, kicked: any) {
kicker: kickerId
});
- if (kicked.isReplaced?.() || kickerId === localParticipant?.id) {
+ if (kicked.isReplaced?.() || !kickerId || kickerId === localParticipant?.id) {
return;
}