* 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
17 lines
307 B
JavaScript
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
|
|
};
|
|
}
|