@@ -18,6 +18,8 @@ pub enum UserIdentity {
18
18
user_signing_key : String ,
19
19
/// The public self-signing key of our identity.
20
20
self_signing_key : String ,
21
+ /// True if this identity was verified at some point but is not anymore.
22
+ has_verification_violation : bool ,
21
23
} ,
22
24
/// The user identity of other users.
23
25
Other {
@@ -27,6 +29,8 @@ pub enum UserIdentity {
27
29
master_key : String ,
28
30
/// The public self-signing key of our identity.
29
31
self_signing_key : String ,
32
+ /// True if this identity was verified at some point but is not anymore.
33
+ has_verification_violation : bool ,
30
34
} ,
31
35
}
32
36
@@ -44,6 +48,7 @@ impl UserIdentity {
44
48
master_key : serde_json:: to_string ( & master) ?,
45
49
user_signing_key : serde_json:: to_string ( & user_signing) ?,
46
50
self_signing_key : serde_json:: to_string ( & self_signing) ?,
51
+ has_verification_violation : i. has_verification_violation ( ) ,
47
52
}
48
53
}
49
54
SdkUserIdentity :: Other ( i) => {
@@ -54,6 +59,7 @@ impl UserIdentity {
54
59
user_id : i. user_id ( ) . to_string ( ) ,
55
60
master_key : serde_json:: to_string ( & master) ?,
56
61
self_signing_key : serde_json:: to_string ( & self_signing) ?,
62
+ has_verification_violation : i. has_verification_violation ( ) ,
57
63
}
58
64
}
59
65
} )
0 commit comments