You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Merge pull request #4465 from matrix-org/jryans/signing-upload-assume-password-release
Skip auth flow test for signing upload when password present
This commit is contained in:
@@ -92,7 +92,15 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this._fetchBackupInfo();
|
this._fetchBackupInfo();
|
||||||
|
if (this.state.accountPassword) {
|
||||||
|
// If we have an account password in memory, let's simplify and
|
||||||
|
// assume it means password auth is also supported for device
|
||||||
|
// signing key upload as well. This avoids hitting the server to
|
||||||
|
// test auth flows, which may be slow under high load.
|
||||||
|
this.state.canUploadKeysWithPasswordOnly = true;
|
||||||
|
} else {
|
||||||
this._queryKeyUploadAuth();
|
this._queryKeyUploadAuth();
|
||||||
|
}
|
||||||
|
|
||||||
MatrixClientPeg.get().on('crypto.keyBackupStatus', this._onKeyBackupStatusChange);
|
MatrixClientPeg.get().on('crypto.keyBackupStatus', this._onKeyBackupStatusChange);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user