From 72cd3d70e1c0c2ea2a99d39280bcc55306dd6b0a Mon Sep 17 00:00:00 2001 From: tudordan7 Date: Fri, 14 May 2021 10:10:46 +0300 Subject: [PATCH] feat(virtual-background): Desktop share as virtual background wip --- react/features/toolbox/components/web/Toolbox.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index 02d79d62c..38e9bdb5b 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -101,6 +101,11 @@ import VideoSettingsButton from './VideoSettingsButton'; */ type Props = { + /** + * String showing if the virtual background type is desktop-share. + */ + _backgroundType: String, + /** * Whether or not the chat feature is currently displayed. */ @@ -891,7 +896,7 @@ class Toolbox extends Component { * @returns {void} */ _onToolbarToggleScreenshare() { - if (!this.props._desktopSharingEnabled) { + if (!this.props._desktopSharingEnabled || this.props._backgroundType === 'desktop-share') { return; } @@ -1371,6 +1376,7 @@ function _mapStateToProps(state) { _clientWidth: clientWidth, _conference: conference, _desktopSharingEnabled: desktopSharingEnabled, + _backgroundType: state['features/virtual-background'].backgroundType, _desktopSharingDisabledTooltipKey: desktopSharingDisabledTooltipKey, _dialog: Boolean(state['features/base/dialog'].component), _feedbackConfigured: Boolean(callStatsID),