Update SecureBackupPanel
to use getCrypto()
(#11322)
`MatrixClient.crypto` is going away, so let's switch over to `getCrypto()`. There doesn't seem to be anything else relying on the `crypto` stub in `mockClientMethodsCrypto()`, so let's get rid of that.
This commit is contained in:
parent
b284fbcc37
commit
ddb8e0aa3a
3 changed files with 10 additions and 14 deletions
|
@ -146,7 +146,7 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
|
|||
|
||||
private async getUpdatedDiagnostics(): Promise<void> {
|
||||
const cli = MatrixClientPeg.safeGet();
|
||||
const crypto = cli.crypto;
|
||||
const crypto = cli.getCrypto();
|
||||
if (!crypto) return;
|
||||
|
||||
const secretStorage = cli.secretStorage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue