Fix isVerified returning false

which would cause key backups uploads to be missing is_verified
because it was set to `undefined` which would cause the backup to
fail

Fixes https://github.com/vector-im/riot-web/issues/12901
This commit is contained in:
David Baker
2020-03-27 14:11:32 +00:00
parent 7c40798ee0
commit cb19cd673f
+2 -2
View File
@@ -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()
);
));
}
/**