deltachat::contact

Function set_status

source
pub(crate) async fn set_status(
    context: &Context,
    contact_id: ContactId,
    status: String,
    encrypted: bool,
    has_chat_version: bool,
) -> Result<()>
Expand description

Sets contact status.

For contact SELF, the status is not saved in the contact table, but as Config::Selfstatus. This is only done if message is sent from Delta Chat and it is encrypted, to synchronize signature between Delta Chat devices.