fix(virtual-background) Remove unused action type VIRTUAL_BACKGROUND_TRACK_CHANGED.
This commit is contained in:
parent
3f78de2d34
commit
68f79e52e7
|
@ -23,13 +23,3 @@ export const BACKGROUND_ENABLED = 'BACKGROUND_ENABLED';
|
||||||
* }}
|
* }}
|
||||||
*/
|
*/
|
||||||
export const SET_VIRTUAL_BACKGROUND = 'SET_VIRTUAL_BACKGROUND';
|
export const SET_VIRTUAL_BACKGROUND = 'SET_VIRTUAL_BACKGROUND';
|
||||||
|
|
||||||
/**
|
|
||||||
* The type which signals if the local track was changed due to a changes of the virtual background.
|
|
||||||
*
|
|
||||||
* @returns {{
|
|
||||||
* type: VIRTUAL_BACKGROUND_TRACK_CHANGED
|
|
||||||
*}}
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const VIRTUAL_BACKGROUND_TRACK_CHANGED = 'VIRTUAL_BACKGROUND_TRACK_CHANGED';
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { IStore } from '../app/types';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { createVirtualBackgroundEffect } from '../stream-effects/virtual-background';
|
import { createVirtualBackgroundEffect } from '../stream-effects/virtual-background';
|
||||||
|
|
||||||
import { BACKGROUND_ENABLED, SET_VIRTUAL_BACKGROUND, VIRTUAL_BACKGROUND_TRACK_CHANGED } from './actionTypes';
|
import { BACKGROUND_ENABLED, SET_VIRTUAL_BACKGROUND } from './actionTypes';
|
||||||
import logger from './logger';
|
import logger from './logger';
|
||||||
import { VirtualBackgroundOptions } from './types';
|
import { VirtualBackgroundOptions } from './types';
|
||||||
|
|
||||||
|
@ -73,16 +73,3 @@ export function backgroundEnabled(backgroundEffectEnabled: boolean) {
|
||||||
backgroundEffectEnabled
|
backgroundEffectEnabled
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Signals if the local track was changed due to a changes of the virtual background.
|
|
||||||
*
|
|
||||||
* @returns {{
|
|
||||||
* type: VIRTUAL_BACKGROUND_TRACK_CHANGED
|
|
||||||
* }}
|
|
||||||
*/
|
|
||||||
export function virtualBackgroundTrackChanged() {
|
|
||||||
return {
|
|
||||||
type: VIRTUAL_BACKGROUND_TRACK_CHANGED
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ import { Tooltip } from '../../base/tooltip';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { getLocalVideoTrack } from '../../base/tracks';
|
import { getLocalVideoTrack } from '../../base/tracks';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { toggleBackgroundEffect, virtualBackgroundTrackChanged } from '../actions';
|
import { toggleBackgroundEffect } from '../actions';
|
||||||
import { BACKGROUNDS_LIMIT, IMAGES, type Image, VIRTUAL_BACKGROUND_TYPE } from '../constants';
|
import { BACKGROUNDS_LIMIT, IMAGES, type Image, VIRTUAL_BACKGROUND_TYPE } from '../constants';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { toDataURL } from '../functions';
|
import { toDataURL } from '../functions';
|
||||||
|
@ -439,7 +439,6 @@ function VirtualBackground({
|
||||||
dispatch(hideDialog());
|
dispatch(hideDialog());
|
||||||
logger.info(`Virtual background type: '${typeof options.backgroundType === 'undefined'
|
logger.info(`Virtual background type: '${typeof options.backgroundType === 'undefined'
|
||||||
? 'none' : options.backgroundType}' applied!`);
|
? 'none' : options.backgroundType}' applied!`);
|
||||||
dispatch(virtualBackgroundTrackChanged());
|
|
||||||
}, [ dispatch, options, _localFlipX ]);
|
}, [ dispatch, options, _localFlipX ]);
|
||||||
|
|
||||||
// Prevent the selection of a new virtual background if it has not been applied by default
|
// Prevent the selection of a new virtual background if it has not been applied by default
|
||||||
|
|
Loading…
Reference in New Issue