diff --git a/src/rust-crypto/backup.ts b/src/rust-crypto/backup.ts index a040b37ed55..aa36001898d 100644 --- a/src/rust-crypto/backup.ts +++ b/src/rust-crypto/backup.ts @@ -284,6 +284,7 @@ export class RustBackupManager extends TypedEventEmitter { const deviceMapByUserId = new Map>(); - const rustTrackedUsers: Set = await this.olmMachine.trackedUsers(); + const rustTrackedUsers: Set = await this.getOlmMachineOrThrow().trackedUsers(); // Convert RustSdkCryptoJs.UserId to a `Set` const trackedUsers = new Set(); @@ -602,7 +602,7 @@ export class RustCrypto extends TypedEventEmitter { const userIdentity: RustSdkCryptoJs.UserIdentity | RustSdkCryptoJs.OwnUserIdentity | undefined = - await this.olmMachine.getIdentity(new RustSdkCryptoJs.UserId(userId)); + await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(userId)); if (userIdentity === undefined) { return new UserVerificationStatus(false, false, false); }