17 lines
318 B
JavaScript
17 lines
318 B
JavaScript
// @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
|
|
};
|
|
}
|