jiti-meet/react/features/e2ee/actions.js

17 lines
318 B
JavaScript
Raw Normal View History

// @flow
import { TOGGLE_E2EE } from './actionTypes';
/**
* Dispatches an action to enable / disable E2EE.
*
* @param {boolean} enabled - Whether E2EE is to be enabled or not.
* @returns {Object}
*/
export function toggleE2EE(enabled: boolean) {
return {
type: TOGGLE_E2EE,
enabled
};
}