api: rename parameter name in get_webxdc_href to info_msg_id to reduce confusion potential (#6681)

This commit is contained in:
Simon Laux
2025-03-19 20:35:42 +01:00
committed by GitHub
parent 8cb136ab9d
commit b82fa19c6f

View File

@@ -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<Option<String>> {
async fn get_webxdc_href(&self, account_id: u32, info_msg_id: u32) -> Result<Option<String>> {
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())
}