mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Fix bug where cross-signing keys would be unintentionally reset
Don't pass the boostrap function directly as a an event handler as that gets used as the force argument.
This commit is contained in:
parent
32f70dfec1
commit
9bfc19f367
1 changed files with 5 additions and 1 deletions
|
@ -60,6 +60,10 @@ export default class CrossSigningPanel extends React.PureComponent {
|
|||
}
|
||||
};
|
||||
|
||||
_onBootstrapClick = () => {
|
||||
this._bootstrapSecureSecretStorage(false);
|
||||
};
|
||||
|
||||
onStatusChanged = () => {
|
||||
this._getUpdatedStatus();
|
||||
};
|
||||
|
@ -175,7 +179,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
|||
) {
|
||||
bootstrapButton = (
|
||||
<div className="mx_CrossSigningPanel_buttonRow">
|
||||
<AccessibleButton kind="primary" onClick={this._bootstrapSecureSecretStorage}>
|
||||
<AccessibleButton kind="primary" onClick={this._onBootstrapClick}>
|
||||
{_t("Bootstrap cross-signing and secret storage")}
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue