add addr to contactinfo in repl

This commit is contained in:
Simon Laux
2026-01-08 20:29:00 +01:00
parent 4f816ae6ec
commit aa5d02137a

View File

@@ -1159,14 +1159,16 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
let contact_id = ContactId::new(arg1.parse()?);
let contact = Contact::get_by_id(&context, contact_id).await?;
let display_name = contact.get_display_name();
let addr = contact.get_addr();
let mut res = format!(
"Contact info for: {}:\nIcon: {}\n",
"Contact info for: {}:\nIcon: {}\nAddr: {}\n",
display_name,
match contact.get_profile_image(&context).await? {
Some(image) => image.to_str().unwrap().to_string(),
None => "NoIcon".to_string(),
}
},
addr
);
res += &Contact::get_encrinfo(&context, contact_id).await?;