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()) }