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: get the current conference
Pawel Domasaf072c307005
diff --git a/react/features/base/participants/actions.ts b/react/features/base/participants/actions.tsindex 5802443b74..2f4dc30054 100644--- a/react/features/base/participants/actions.ts+++ b/react/features/base/participants/actions.ts@@ -477,18 +477,19 @@ export function participantMutedUs(participant: any, track: any) {/*** Action to create a virtual screenshare participant.*- * @param {(string)} sourceName - JitsiTrack instance.- * @param {(boolean)} local - JitsiTrack instance.+ * @param {(string)} sourceName - The source name of the JitsiTrack instance.+ * @param {(boolean)} local - Whether it's a local or remote participant.+ * @param {JitsiConference} conference - The conference instance for which the participant is to be created.* @returns {Function}*/-export function createVirtualScreenshareParticipant(sourceName: string, local: boolean) {+export function createVirtualScreenshareParticipant(sourceName: string, local: boolean, conference: any) {return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {const state = getState();const ownerId = getVirtualScreenshareParticipantOwnerId(sourceName);const ownerName = getParticipantDisplayName(state, ownerId);dispatch(participantJoined({- conference: state['features/base/conference'].conference,+ conference,fakeParticipant: local ? FakeParticipant.LocalScreenShare : FakeParticipant.RemoteScreenShare,id: sourceName,name: ownerNamediff --git a/react/features/base/participants/subscriber.ts b/react/features/base/participants/subscriber.tsindex be3d34e8c6..26396f9d7a 100644--- a/react/features/base/participants/subscriber.ts+++ b/react/features/base/participants/subscriber.ts@@ -46,7 +46,7 @@ function _updateScreenshareParticipants({ getState, dispatch }: IStore) {if (getMultipleVideoSendingSupportFeatureFlag(state)) {if (!localScreenShare && newLocalSceenshareSourceName) {- dispatch(createVirtualScreenshareParticipant(newLocalSceenshareSourceName, true));+ dispatch(createVirtualScreenshareParticipant(newLocalSceenshareSourceName, true, conference));}if (localScreenShare && !newLocalSceenshareSourceName) {@@ -68,7 +68,7 @@ function _updateScreenshareParticipants({ getState, dispatch }: IStore) {}if (addedScreenshareSourceNames.length) {- addedScreenshareSourceNames.forEach(id => dispatch(createVirtualScreenshareParticipant(id, false)));-+ addedScreenshareSourceNames.forEach(id => dispatch(+ createVirtualScreenshareParticipant(id, false, conference)));}}