api!: make MsgId.delete_from_db() private

Use `delete_msgs()` if you are using the Delta Chat core
as a library and want to delete a message.
This commit is contained in:
link2xt
2023-07-23 11:44:46 +00:00
parent 60bacbec47
commit 8ed6d4d709
4 changed files with 7 additions and 7 deletions

View File

@@ -1274,7 +1274,7 @@ RETURNING id
if let Some(replace_msg_id) = replace_msg_id {
// "Replace" placeholder with a message that has no parts.
replace_msg_id.delete_from_db(context).await?;
replace_msg_id.trash(context).await?;
}
chat_id.unarchive_if_not_muted(context, state).await?;