mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
Use footer as a contact status
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user