jsonrpc: add getMessageHtml (#3671)

* add getMessageHtml function

* add changelog entry
This commit is contained in:
Simon Laux
2022-10-15 20:47:31 +02:00
committed by GitHub
parent e8ea9b7127
commit 836c016f97
4 changed files with 12 additions and 1 deletions

View File

@@ -915,6 +915,11 @@ impl CommandApi {
MessageObject::from_message_id(&ctx, message_id).await
}
async fn get_message_html(&self, account_id: u32, message_id: u32)->Result<Option<String>>{
let ctx = self.get_context(account_id).await?;
MsgId::new(message_id).get_html(&ctx).await
}
async fn message_get_messages(
&self,
account_id: u32,