Replace MatrixClient.checkSecretStorageKey by MatrixClient.SecretStorage.checkKey (#142)

This commit is contained in:
Florian Duros 2024-10-14 17:08:42 +02:00 committed by GitHub
parent 03186e4a4d
commit 3bc0439fd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 10 deletions

View file

@ -102,7 +102,7 @@ export default class AccessSecretStorageDialog extends React.PureComponent<IProp
try {
const cli = MatrixClientPeg.safeGet();
const decodedKey = decodeRecoveryKey(this.state.recoveryKey);
const correct = await cli.checkSecretStorageKey(decodedKey, this.props.keyInfo);
const correct = await cli.secretStorage.checkKey(decodedKey, this.props.keyInfo);
this.setState({
recoveryKeyValid: true,
recoveryKeyCorrect: correct,