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

@@ -113,7 +113,7 @@ WHERE id=?;
}
/// Deletes a message, corresponding MDNs and unsent SMTP messages from the database.
pub async fn delete_from_db(self, context: &Context) -> Result<()> {
pub(crate) async fn delete_from_db(self, context: &Context) -> Result<()> {
// We don't use transactions yet, so remove MDNs first to make
// sure they are not left while the message is deleted.
context