Add wasCrossSigningVerified in test

This commit is contained in:
J. Ryan Stinnett 2020-03-30 15:24:43 +01:00
parent a3555cacea
commit b53b5cc45d

View file

@ -6,6 +6,7 @@ function mkClient(selfTrust) {
getUserId: () => "@self:localhost",
checkUserTrust: (userId) => ({
isCrossSigningVerified: () => userId[1] == "T",
wasCrossSigningVerified: () => userId[1] == "T",
}),
checkDeviceTrust: (userId, deviceId) => ({
isVerified: () => userId === "@self:localhost" ? selfTrust : userId[2] == "T",