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.

actions.js 318B

12345678910111213141516
  1. // @flow
  2. import { TOGGLE_E2EE } from './actionTypes';
  3. /**
  4. * Dispatches an action to enable / disable E2EE.
  5. *
  6. * @param {boolean} enabled - Whether E2EE is to be enabled or not.
  7. * @returns {Object}
  8. */
  9. export function toggleE2EE(enabled: boolean) {
  10. return {
  11. type: TOGGLE_E2EE,
  12. enabled
  13. };
  14. }