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/e2ee/reducer.js

26 lines
480 B

// @flow
import { ReducerRegistry } from '../base/redux';
import { TOGGLE_E2EE } from './actionTypes';
const DEFAULT_STATE = {
enabled: false
};
/**
* Reduces the Redux actions of the feature features/e2ee.
*/
ReducerRegistry.register('features/e2ee', (state = DEFAULT_STATE, action) => {
switch (action.type) {
case TOGGLE_E2EE:
return {
...state,
enabled: action.enabled
};
default:
return state;
}
});