Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/noise-suppression/reducer.ts

31 lines
679 B

import ReducerRegistry from '../base/redux/ReducerRegistry';
import {
SET_NOISE_SUPPRESSION_ENABLED
} from './actionTypes';
export interface INoiseSuppressionState {
enabled: boolean;
}
const DEFAULT_STATE = {
enabled: false
};
/**
* Reduces the Redux actions of the feature features/noise-suppression.
*/
ReducerRegistry.register<INoiseSuppressionState>('features/noise-suppression',
(state = DEFAULT_STATE, action): INoiseSuppressionState => {
const { enabled } = action;
switch (action.type) {
case SET_NOISE_SUPPRESSION_ENABLED:
return {
...state,
enabled
};
default:
return state;
}
});