feat: New config disable feature virtual background (#13580)

* New config disable feature virtual background

* Change enableVirtualBackground to disableVirtualBackground in config file and correct lint problems

* Fix comment disable virtual background

* Change deprecated APP.storage to IReduxState
This commit is contained in:
Javier García
2023-07-19 18:07:57 +02:00
committed by GitHub
parent 28efcea9d8
commit 7a305ef96e
5 changed files with 24 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import AbstractButton, { IProps as AbstractButtonProps } from '../../base/toolbo
import { isScreenVideoShared } from '../../screen-share/functions';
import { openSettingsDialog } from '../../settings/actions';
import { SETTINGS_TABS } from '../../settings/constants';
import { checkBlurSupport } from '../functions';
import { checkBlurSupport, checkVirtualBackgroundEnabled } from '../functions';
/**
* The type of the React {@code Component} props of {@link VideoBackgroundButton}.
@@ -69,7 +69,10 @@ function _mapStateToProps(state: IReduxState) {
return {
_isBackgroundEnabled: Boolean(state['features/virtual-background'].backgroundEffectEnabled),
visible: checkBlurSupport() && getMultipleVideoSendingSupportFeatureFlag(state) && !isScreenVideoShared(state)
visible: checkBlurSupport()
&& getMultipleVideoSendingSupportFeatureFlag(state)
&& !isScreenVideoShared(state)
&& checkVirtualBackgroundEnabled(state)
};
}