From b82fa19c6fde2c7d4016557e7fb0565b2622e717 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Wed, 19 Mar 2025 20:35:42 +0100 Subject: [PATCH] api: rename parameter name in get_webxdc_href to info_msg_id to reduce confusion potential (#6681) --- deltachat-jsonrpc/src/api.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index 5d1a392ed..db36bdb87 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -1947,13 +1947,9 @@ impl CommandApi { /// Get href from a WebxdcInfoMessage which might include a hash holding /// information about a specific position or state in a webxdc app (optional) - async fn get_webxdc_href( - &self, - account_id: u32, - instance_msg_id: u32, - ) -> Result> { + async fn get_webxdc_href(&self, account_id: u32, info_msg_id: u32) -> Result> { let ctx = self.get_context(account_id).await?; - let message = Message::load_from_db(&ctx, MsgId::new(instance_msg_id)).await?; + let message = Message::load_from_db(&ctx, MsgId::new(info_msg_id)).await?; Ok(message.get_webxdc_href()) }