File tree 1 file changed +11
-0
lines changed
deltachat-jsonrpc/src/api/types
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ pub struct ContactObject {
19
19
profile_image : Option < String > , // BLOBS
20
20
name_and_addr : String ,
21
21
is_blocked : bool ,
22
+
23
+ /// Is the contact a PGP contact.
24
+ is_pgp_contact : bool ,
25
+
26
+ /// Is encryption available for this contact.
27
+ ///
28
+ /// This can only be true of PGP-contacts.
29
+ /// However, it is possible to have a PGP-contact
30
+ /// for which encryption is not available because we don't have a key yet,
31
+ /// e.g. if we just scanned the fingerprint from a QR code.
22
32
e2ee_avail : bool ,
23
33
24
34
/// True if the contact can be added to verified groups.
@@ -80,6 +90,7 @@ impl ContactObject {
80
90
profile_image, //BLOBS
81
91
name_and_addr : contact. get_name_n_addr ( ) ,
82
92
is_blocked : contact. is_blocked ( ) ,
93
+ is_pgp_contact : contact. is_pgp_contact ( ) ,
83
94
e2ee_avail : contact. e2ee_avail ( context) . await ?,
84
95
is_verified,
85
96
is_profile_verified,
You can’t perform that action at this time.
0 commit comments