mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-15 22:31:32 +01:00
Add wasCrossSigningVerified in test
This commit is contained in:
parent
a3555cacea
commit
b53b5cc45d
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user