Skip to content

Commit

Permalink
feat(rust-crypto!): remove tofu parameter of UserVerificationStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Jan 29, 2025
1 parent 1ffa618 commit 2693c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust-crypto/rust-crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
const userIdentity: RustSdkCryptoJs.OtherUserIdentity | RustSdkCryptoJs.OwnUserIdentity | undefined =
await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(userId));
if (userIdentity === undefined) {
return new UserVerificationStatus(false, false, false);
return new UserVerificationStatus(false, false);
}

const verified = userIdentity.isVerified();
Expand All @@ -667,7 +667,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
? userIdentity.identityNeedsUserApproval()
: false;
userIdentity.free();
return new UserVerificationStatus(verified, wasVerified, false, needsUserApproval);
return new UserVerificationStatus(verified, wasVerified, needsUserApproval);
}

/**
Expand Down

0 comments on commit 2693c9c

Please sign in to comment.