Skip to content

Commit

Permalink
refactor: jsonrpc: deprecate misc_set_draft andmisc_send_draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Jan 12, 2025
1 parent 3b6fb20 commit cbc79cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deltachat-jsonrpc/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<u32> {
let ctx = self.get_context(account_id).await?;
if let Some(draft) = ChatId::new(chat_id).get_draft(&ctx).await? {
Expand Down

0 comments on commit cbc79cd

Please sign in to comment.