Skip to content

Commit 644185d

Browse files
committed
refactor(rust-crypto): remove tofu parameter of UserVerificationStatus
1 parent 1ffa618 commit 644185d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust-crypto/rust-crypto.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
657657
const userIdentity: RustSdkCryptoJs.OtherUserIdentity | RustSdkCryptoJs.OwnUserIdentity | undefined =
658658
await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(userId));
659659
if (userIdentity === undefined) {
660-
return new UserVerificationStatus(false, false, false);
660+
return new UserVerificationStatus(false, false);
661661
}
662662

663663
const verified = userIdentity.isVerified();
@@ -667,7 +667,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
667667
? userIdentity.identityNeedsUserApproval()
668668
: false;
669669
userIdentity.free();
670-
return new UserVerificationStatus(verified, wasVerified, false, needsUserApproval);
670+
return new UserVerificationStatus(verified, wasVerified, needsUserApproval);
671671
}
672672

673673
/**

0 commit comments

Comments
 (0)