diff --git a/src/crypto/CrossSigning.js b/src/crypto/CrossSigning.js index 1c3d3e207..1cfdeec24 100644 --- a/src/crypto/CrossSigning.js +++ b/src/crypto/CrossSigning.js @@ -574,9 +574,9 @@ export class DeviceTrustLevel { * @returns {bool} true if this device is verified via any means */ isVerified() { - return this.isLocallyVerified() || ( + return Boolean(this.isLocallyVerified() || ( this._trustCrossSignedDevices && this.isCrossSigningVerified() - ); + )); } /** diff --git a/src/crypto/index.js b/src/crypto/index.js index 7b5e69185..ad07374a0 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -1097,7 +1097,7 @@ Crypto.prototype._checkDeviceInfoTrust = function(userId, device) { userCrossSigning, device, trustedLocally, trustCrossSig, ); } else { - return new DeviceTrustLevel(false, false, trustedLocally); + return new DeviceTrustLevel(false, false, trustedLocally, false); } };