Use footer as a contact status

This commit is contained in:
link2xt
2021-02-11 08:43:50 +03:00
committed by link2xt
parent 59f9fc7cbf
commit 0601b05cb7
10 changed files with 167 additions and 33 deletions

View File

@@ -237,6 +237,17 @@ pub(crate) async fn dc_receive_imf_inner(
};
}
// Always update the status, even if there is no footer, to allow removing the status.
if let Err(err) = contact::set_status(
&context,
from_id,
mime_parser.footer.clone().unwrap_or_default(),
)
.await
{
warn!(context, "cannot update contact status: {}", err);
}
// Get user-configured server deletion
let delete_server_after = context.get_config_delete_server_after().await;