Saúl Ibarra Corretgé cb6fbb0f03 e2ee: add UI elements
* Add dialog to set the E2EE key
* Use the Redux action / middleware to update the key even when set through the
  hash parameter
* Cleanup URL after processing the key so it's not recorded in browser history
2020-04-16 20:25:56 +02:00

17 lines
307 B
JavaScript

// @flow
import { SET_E2EE_KEY } from './actionTypes';
/**
* Dispatches an action to set the E2EE key.
*
* @param {string|undefined} key - The new key to be used for E2EE.
* @returns {Object}
*/
export function setE2EEKey(key: ?string) {
return {
type: SET_E2EE_KEY,
key
};
}