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

@@ -23,7 +23,7 @@ import {
getAudioDeviceSelectionDialogProps,
getVideoDeviceSelectionDialogProps
} from '../../../device-selection/functions.web';
import { checkBlurSupport } from '../../../virtual-background/functions';
import { checkBlurSupport, checkVirtualBackgroundEnabled } from '../../../virtual-background/functions';
import { iAmVisitor } from '../../../visitors/functions';
import {
submitModeratorTab,
@@ -141,6 +141,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
const enabledNotifications = getNotificationsMap(state);
const showNotificationsSettings = Object.keys(enabledNotifications).length > 0;
const virtualBackgroundSupported = checkBlurSupport();
const enableVirtualBackground = checkVirtualBackgroundEnabled(state);
const tabs: IDialogTab<any>[] = [];
const _iAmVisitor = iAmVisitor(state);
@@ -191,7 +192,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
});
}
if (virtualBackgroundSupported && !_iAmVisitor) {
if (virtualBackgroundSupported && !_iAmVisitor && enableVirtualBackground) {
tabs.push({
name: SETTINGS_TABS.VIRTUAL_BACKGROUND,
component: VirtualBackgroundTab,