Skip to content

Commit b82fa19

Browse files
authored
api: rename parameter name in get_webxdc_href to info_msg_id to reduce confusion potential (#6681)
1 parent 8cb136a commit b82fa19

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

deltachat-jsonrpc/src/api.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,13 +1947,9 @@ impl CommandApi {
19471947

19481948
/// Get href from a WebxdcInfoMessage which might include a hash holding
19491949
/// information about a specific position or state in a webxdc app (optional)
1950-
async fn get_webxdc_href(
1951-
&self,
1952-
account_id: u32,
1953-
instance_msg_id: u32,
1954-
) -> Result<Option<String>> {
1950+
async fn get_webxdc_href(&self, account_id: u32, info_msg_id: u32) -> Result<Option<String>> {
19551951
let ctx = self.get_context(account_id).await?;
1956-
let message = Message::load_from_db(&ctx, MsgId::new(instance_msg_id)).await?;
1952+
let message = Message::load_from_db(&ctx, MsgId::new(info_msg_id)).await?;
19571953
Ok(message.get_webxdc_href())
19581954
}
19591955

0 commit comments

Comments
 (0)