mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
refactor: jsonrpc: deprecate misc_set_draft andmisc_send_draft
This commit is contained in:
@@ -2322,6 +2322,7 @@ impl CommandApi {
|
|||||||
// the better version should support:
|
// the better version should support:
|
||||||
// - changing viewtype to enable/disable compression
|
// - changing viewtype to enable/disable compression
|
||||||
// - keeping same message id as long as attachment does not change for webxdc messages
|
// - 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(
|
async fn misc_set_draft(
|
||||||
&self,
|
&self,
|
||||||
account_id: u32,
|
account_id: u32,
|
||||||
@@ -2363,6 +2364,7 @@ impl CommandApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// send the chat's current set draft
|
// 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> {
|
async fn misc_send_draft(&self, account_id: u32, chat_id: u32) -> Result<u32> {
|
||||||
let ctx = self.get_context(account_id).await?;
|
let ctx = self.get_context(account_id).await?;
|
||||||
if let Some(draft) = ChatId::new(chat_id).get_draft(&ctx).await? {
|
if let Some(draft) = ChatId::new(chat_id).get_draft(&ctx).await? {
|
||||||
|
|||||||
Reference in New Issue
Block a user