feat(jsonrpc): Add ContactObject::e2ee_avail

This can be helpful for the chatmail case, the app can warn the user at least.
This commit is contained in:
iequidoo
2024-07-31 15:12:38 -03:00
committed by iequidoo
parent ed74f4d1d9
commit fbf66ba02b
2 changed files with 17 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ pub struct ContactObject {
profile_image: Option<String>, // BLOBS
name_and_addr: String,
is_blocked: bool,
e2ee_avail: bool,
/// True if the contact can be added to verified groups.
///
@@ -79,6 +80,7 @@ impl ContactObject {
profile_image, //BLOBS
name_and_addr: contact.get_name_n_addr(),
is_blocked: contact.is_blocked(),
e2ee_avail: contact.e2ee_avail(context).await?,
is_verified,
is_profile_verified,
verifier_id,