diff --git a/react/features/base/media/actions.ts b/react/features/base/media/actions.ts index a4824f815..cae1ded00 100644 --- a/react/features/base/media/actions.ts +++ b/react/features/base/media/actions.ts @@ -17,7 +17,6 @@ import { } from './actionTypes'; import { MEDIA_TYPE, - type MediaType, SCREENSHARE_MUTISM_AUTHORITY, VIDEO_MUTISM_AUTHORITY } from './constants'; @@ -95,14 +94,12 @@ export function setCameraFacingMode(cameraFacingMode: string) { * Action to set the muted state of the local screenshare. * * @param {boolean} muted - True if the local screenshare is to be enabled or false otherwise. - * @param {MEDIA_TYPE} mediaType - The type of media. * @param {number} authority - The {@link SCREENSHARE_MUTISM_AUTHORITY} which is muting/unmuting the local screenshare. * @param {boolean} ensureTrack - True if we want to ensure that a new track is created if missing. * @returns {Function} */ export function setScreenshareMuted( muted: boolean, - mediaType: MediaType = MEDIA_TYPE.SCREENSHARE, authority: number = SCREENSHARE_MUTISM_AUTHORITY.USER, ensureTrack = false) { return (dispatch: IStore['dispatch'], getState: IStore['getState']) => { @@ -125,7 +122,6 @@ export function setScreenshareMuted( return dispatch({ type: SET_SCREENSHARE_MUTED, authority, - mediaType, ensureTrack, muted: newValue }); diff --git a/react/features/base/media/middleware.any.js b/react/features/base/media/middleware.any.js index 056249369..c441decb3 100644 --- a/react/features/base/media/middleware.any.js +++ b/react/features/base/media/middleware.any.js @@ -193,7 +193,7 @@ function _setAudioOnly({ dispatch, getState }, next, action) { // Make sure we mute both the desktop and video tracks. dispatch(setVideoMuted(audioOnly, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY)); if (getMultipleVideoSendingSupportFeatureFlag(state)) { - dispatch(setScreenshareMuted(audioOnly, MEDIA_TYPE.SCREENSHARE, SCREENSHARE_MUTISM_AUTHORITY.AUDIO_ONLY)); + dispatch(setScreenshareMuted(audioOnly, SCREENSHARE_MUTISM_AUTHORITY.AUDIO_ONLY)); } return next(action); diff --git a/react/features/base/tracks/middleware.any.ts b/react/features/base/tracks/middleware.any.ts index c706323f2..715e2bb10 100644 --- a/react/features/base/tracks/middleware.any.ts +++ b/react/features/base/tracks/middleware.any.ts @@ -79,7 +79,7 @@ MiddlewareRegistry.register(store => next => action => { } case SET_SCREENSHARE_MUTED: - _setMuted(store, action, action.mediaType); + _setMuted(store, action, MEDIA_TYPE.SCREENSHARE); break; case SET_VIDEO_MUTED: