This commit is contained in:
Zoe 2020-02-07 15:46:31 +00:00
parent 8fdae73e03
commit b08c5d8410
3 changed files with 4 additions and 2 deletions

View File

@ -115,6 +115,7 @@ export const crossSigningCallbacks = {
*
* @param {Function} [func] An operation to perform once secret storage has been
* bootstrapped. Optional.
* @param {bool} [force] Reset secret storage even if it's already set up
*/
export async function accessSecretStorage(func = async () => { }, force = false) {
const cli = MatrixClientPeg.get();

View File

@ -46,7 +46,7 @@ export default class ConfirmDestroyCrossSigningDialog extends React.Component {
"Deleting cross-signing keys is permanent. " +
"Anyone you have verified with will see security alerts. " +
"You almost certainly don't want to do this, unless " +
"you've lost every device you can cross-sign from."
"you've lost every device you can cross-sign from.",
)}
</p>
</div>

View File

@ -87,6 +87,7 @@ export default class CrossSigningPanel extends React.PureComponent {
* 2. Access existing secret storage by requesting passphrase and accessing
* cross-signing keys as needed.
* 3. All keys are loaded and there's nothing to do.
* @param {bool} [force] Bootstrap again even if keys already present
*/
_bootstrapSecureSecretStorage = async (force=false) => {
this.setState({ error: null });
@ -109,7 +110,7 @@ export default class CrossSigningPanel extends React.PureComponent {
_destroySecureSecretStorage = () => {
const ConfirmDestoryCrossSigningDialog = sdk.getComponent("dialogs.ConfirmDestroyCrossSigningDialog");
Modal.createDialog(ConfirmDestoryCrossSigningDialog, {
onFinished: this.onDestroyStorage
onFinished: this.onDestroyStorage,
});
}