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(pinning): send a participant id on unpin

Leonard Kim8c9ba325caf6
diff --git a/react/features/base/conference/middleware.js b/react/features/base/conference/middleware.js
index 23eef2506f..2d5c3c095d 100644
--- a/react/features/base/conference/middleware.js
+++ b/react/features/base/conference/middleware.js
@@ -390,10 +390,18 @@ function _pinParticipant({ getState }, next, action) {
const local
= (participantById && participantById.local)
|| (!id && pinnedParticipant && pinnedParticipant.local);
+ let participantIdForEvent;
+
+ if (local) {
+ participantIdForEvent = local;
+ } else {
+ participantIdForEvent = actionName === ACTION_PINNED
+ ? id : pinnedParticipant && pinnedParticipant.id;
+ }
sendAnalytics(createPinnedEvent(
actionName,
- local ? 'local' : id,
+ participantIdForEvent,
{
local,
'participant_count': conference.getParticipantCount()