Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

add(screenshot-capture): local participants id to participants array in metadata (#11134)

Gabriel Borlea38848629961c
diff --git a/react/features/screenshot-capture/ScreenshotCaptureSummary.js b/react/features/screenshot-capture/ScreenshotCaptureSummary.js
index 47a2bc6c82..fa8f5ef371 100644
--- a/react/features/screenshot-capture/ScreenshotCaptureSummary.js
+++ b/react/features/screenshot-capture/ScreenshotCaptureSummary.js
@@ -6,7 +6,7 @@ import './createImageBitmap';
import { createScreensharingCaptureTakenEvent, sendAnalytics } from '../analytics';
import { getCurrentConference } from '../base/conference';
-import { getRemoteParticipants } from '../base/participants';
+import { getLocalParticipant, getRemoteParticipants } from '../base/participants';
import { extractFqnFromPath } from '../dynamic-branding';
import {
@@ -177,6 +177,7 @@ export default class ScreenshotCaptureSummary {
const remoteParticipants = getRemoteParticipants(this._state);
const participants = [];
+ participants.push(getLocalParticipant(this._state).id);
remoteParticipants.forEach(p => participants.push(p.id));
this._storedImageData = imageData;