Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(external-api) Fix pin function (#12236)
Robert Pintilii077afecdbaeb
diff --git a/modules/API/API.js b/modules/API/API.jsindex fc5caeeb23..5a38eccd68 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -68,7 +68,8 @@ import {import { appendSuffix } from '../../react/features/display-name';import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';import { setMediaEncryptionKey, toggleE2EE } from '../../react/features/e2ee/actions';-import { resizeFilmStrip, setVolume } from '../../react/features/filmstrip/actions.web';+import { addStageParticipant, resizeFilmStrip, setVolume } from '../../react/features/filmstrip/actions.web';+import { isStageFilmstripAvailable } from '../../react/features/filmstrip/functions.web';import { invite } from '../../react/features/invite';import {selectParticipantInLargeVideo@@ -236,7 +237,11 @@ function initCommands() {'pin-participant': id => {logger.debug('Pin participant command received');sendAnalytics(createApiEvent('participant.pinned'));- APP.store.dispatch(pinParticipant(id));+ if (isStageFilmstripAvailable(APP.store.getState())) {+ APP.store.dispatch(addStageParticipant(id, true));+ } else {+ APP.store.dispatch(pinParticipant(id));+ }},'proxy-connection-event': event => {APP.conference.onProxyConnectionEvent(event);diff --git a/react/features/filmstrip/components/web/PinnedIndicator.tsx b/react/features/filmstrip/components/web/PinnedIndicator.tsxindex ed8f2cc53c..a549163658 100644--- a/react/features/filmstrip/components/web/PinnedIndicator.tsx+++ b/react/features/filmstrip/components/web/PinnedIndicator.tsx@@ -67,7 +67,9 @@ const PinnedIndicator = ({}return (- <div className = { styles.pinnedIndicator }>+ <div+ className = { styles.pinnedIndicator }+ id = { `pin-indicator-${participantId}` }><BaseIndicatoricon = { IconPinParticipant }iconSize = { `${iconSize}px` }