From cbc79cdcc56cafab4f1ca8960a61e7765daf457d Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Sun, 12 Jan 2025 04:11:37 +0100 Subject: [PATCH] refactor: jsonrpc: deprecate `misc_set_draft ` and`misc_send_draft` --- deltachat-jsonrpc/src/api.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index ddb9ee337f..6f1b70a7b7 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -2322,6 +2322,7 @@ impl CommandApi { // the better version should support: // - changing viewtype to enable/disable compression // - keeping same message id as long as attachment does not change for webxdc messages + /// @deprecated use [Self::send_draft] instead async fn misc_set_draft( &self, account_id: u32, @@ -2363,6 +2364,7 @@ impl CommandApi { } // send the chat's current set draft + /// @deprecated use [Self::send_draft] instead async fn misc_send_draft(&self, account_id: u32, chat_id: u32) -> Result { let ctx = self.get_context(account_id).await?; if let Some(draft) = ChatId::new(chat_id).get_draft(&ctx).await? {