From 1b3be5e55d2fdf1692d66aba7592deed450f421a Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 24 Apr 2026 01:51:49 +0200 Subject: [PATCH] api: jsonrpc: remove unused set_draft_vcard() --- deltachat-jsonrpc/src/api.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index dc4842fc7..1cb819b82 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -1877,20 +1877,6 @@ impl CommandApi { deltachat::contact::make_vcard(&ctx, &contacts).await } - /// Sets vCard containing the given contacts to the message draft. - async fn set_draft_vcard( - &self, - account_id: u32, - msg_id: u32, - contacts: Vec, - ) -> Result<()> { - let ctx = self.get_context(account_id).await?; - let contacts: Vec<_> = contacts.iter().map(|&c| ContactId::new(c)).collect(); - let mut msg = Message::load_from_db(&ctx, MsgId::new(msg_id)).await?; - msg.make_vcard(&ctx, &contacts).await?; - msg.get_chat_id().set_draft(&ctx, Some(&mut msg)).await - } - // --------------------------------------------- // chat // ---------------------------------------------