Add wasCrossSigningVerified in test
This commit is contained in:
parent
a3555cacea
commit
b53b5cc45d
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ function mkClient(selfTrust) {
|
||||||
getUserId: () => "@self:localhost",
|
getUserId: () => "@self:localhost",
|
||||||
checkUserTrust: (userId) => ({
|
checkUserTrust: (userId) => ({
|
||||||
isCrossSigningVerified: () => userId[1] == "T",
|
isCrossSigningVerified: () => userId[1] == "T",
|
||||||
|
wasCrossSigningVerified: () => userId[1] == "T",
|
||||||
}),
|
}),
|
||||||
checkDeviceTrust: (userId, deviceId) => ({
|
checkDeviceTrust: (userId, deviceId) => ({
|
||||||
isVerified: () => userId === "@self:localhost" ? selfTrust : userId[2] == "T",
|
isVerified: () => userId === "@self:localhost" ? selfTrust : userId[2] == "T",
|
||||||
|
|
Loading…
Reference in a new issue