diff --git a/react/features/base/conference/middleware.web.js b/react/features/base/conference/middleware.web.js index 9b9da3caa..43801caf2 100644 --- a/react/features/base/conference/middleware.web.js +++ b/react/features/base/conference/middleware.web.js @@ -186,6 +186,11 @@ async function _toggleScreenSharing({ enabled, audioOnly = false, shareOptions = if (enable) { let tracks; + const { _desktopSharingSourceDevice } = state['features/base/config']; + + if (!shareOptions.desktopSharingSources && _desktopSharingSourceDevice) { + shareOptions.desktopSharingSourceDevice = _desktopSharingSourceDevice; + } const options = { devices: [ VIDEO_TYPE.DESKTOP ], ...shareOptions