You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user