mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-08-31 22:07:47 +00:00
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:
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user