You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Add wasCrossSigningVerified in test
This commit is contained in:
@ -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",
|
||||||
|
Reference in New Issue
Block a user