Adapt for js-sdk MatrixClient conversion to TS

For https://github.com/matrix-org/matrix-js-sdk/pull/1718
This commit is contained in:
Travis Ralston 2021-06-01 21:36:28 -06:00
parent 50994735d9
commit 5b2dacd99e
10 changed files with 18 additions and 18 deletions

View file

@ -271,7 +271,7 @@ async function onSecretRequested(
}
return key && encodeBase64(key);
} else if (name === "m.megolm_backup.v1") {
const key = await client._crypto.getSessionBackupPrivateKey();
const key = await client.crypto.getSessionBackupPrivateKey();
if (!key) {
console.log(
`session backup key requested by ${deviceId}, but not found in cache`,