Fixed bug where key reset didn't always return the right key

This commit is contained in:
Zoe 2020-02-11 15:56:32 +00:00
parent 7a026eb15d
commit 5382a52519
3 changed files with 18 additions and 10 deletions

View file

@ -103,7 +103,6 @@ export default class CrossSigningPanel extends React.PureComponent {
onDestroyStorage = (act) => {
if (!act) return;
console.log("Destroy secret storage:", act);
this._bootstrapSecureSecretStorage(true);
}
@ -157,13 +156,13 @@ export default class CrossSigningPanel extends React.PureComponent {
{_t("Bootstrap cross-signing and secret storage")}
</AccessibleButton>
</div>;
} /*else { // TODO https://github.com/vector-im/riot-web/issues/12221
} else {
bootstrapButton = <div className="mx_CrossSigningPanel_buttonRow">
<AccessibleButton kind="danger" onClick={this._destroySecureSecretStorage}>
{_t("Reset cross-signing and secret storage")}
</AccessibleButton>
</div>;
}*/
}
return (
<div>