mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +01:00
remove txn argument that was removed in previous commit
This commit is contained in:
parent
762a91bd16
commit
90faad551a
@ -210,11 +210,11 @@ export class CrossSigning {
|
|||||||
if (!this.isMasterKeyTrusted) {
|
if (!this.isMasterKeyTrusted) {
|
||||||
return UserTrust.OwnSetupError;
|
return UserTrust.OwnSetupError;
|
||||||
}
|
}
|
||||||
const ourMSK = await log.wrap("get our msk", log => this.deviceTracker.getCrossSigningKeyForUser(this.ownUserId, KeyUsage.Master, this.hsApi, undefined, log));
|
const ourMSK = await log.wrap("get our msk", log => this.deviceTracker.getCrossSigningKeyForUser(this.ownUserId, KeyUsage.Master, this.hsApi, log));
|
||||||
if (!ourMSK) {
|
if (!ourMSK) {
|
||||||
return UserTrust.OwnSetupError;
|
return UserTrust.OwnSetupError;
|
||||||
}
|
}
|
||||||
const ourUSK = await log.wrap("get our usk", log => this.deviceTracker.getCrossSigningKeyForUser(this.ownUserId, KeyUsage.UserSigning, this.hsApi, undefined, log));
|
const ourUSK = await log.wrap("get our usk", log => this.deviceTracker.getCrossSigningKeyForUser(this.ownUserId, KeyUsage.UserSigning, this.hsApi, log));
|
||||||
if (!ourUSK) {
|
if (!ourUSK) {
|
||||||
return UserTrust.OwnSetupError;
|
return UserTrust.OwnSetupError;
|
||||||
}
|
}
|
||||||
@ -222,7 +222,7 @@ export class CrossSigning {
|
|||||||
if (ourUSKVerification !== SignatureVerification.Valid) {
|
if (ourUSKVerification !== SignatureVerification.Valid) {
|
||||||
return UserTrust.OwnSetupError;
|
return UserTrust.OwnSetupError;
|
||||||
}
|
}
|
||||||
const theirMSK = await log.wrap("get their msk", log => this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.Master, this.hsApi, undefined, log));
|
const theirMSK = await log.wrap("get their msk", log => this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.Master, this.hsApi, log));
|
||||||
if (!theirMSK) {
|
if (!theirMSK) {
|
||||||
/* assume that when they don't have an MSK, they've never enabled cross-signing on their client
|
/* assume that when they don't have an MSK, they've never enabled cross-signing on their client
|
||||||
(or it's not supported) rather than assuming a setup error on their side.
|
(or it's not supported) rather than assuming a setup error on their side.
|
||||||
@ -237,7 +237,7 @@ export class CrossSigning {
|
|||||||
return UserTrust.UserSignatureMismatch;
|
return UserTrust.UserSignatureMismatch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const theirSSK = await log.wrap("get their ssk", log => this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.SelfSigning, this.hsApi, undefined, log));
|
const theirSSK = await log.wrap("get their ssk", log => this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.SelfSigning, this.hsApi, log));
|
||||||
if (!theirSSK) {
|
if (!theirSSK) {
|
||||||
return UserTrust.UserSetupError;
|
return UserTrust.UserSetupError;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user