mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
add addr to contactinfo in repl
This commit is contained in:
@@ -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_id = ContactId::new(arg1.parse()?);
|
||||||
let contact = Contact::get_by_id(&context, contact_id).await?;
|
let contact = Contact::get_by_id(&context, contact_id).await?;
|
||||||
let display_name = contact.get_display_name();
|
let display_name = contact.get_display_name();
|
||||||
|
let addr = contact.get_addr();
|
||||||
|
|
||||||
let mut res = format!(
|
let mut res = format!(
|
||||||
"Contact info for: {}:\nIcon: {}\n",
|
"Contact info for: {}:\nIcon: {}\nAddr: {}\n",
|
||||||
display_name,
|
display_name,
|
||||||
match contact.get_profile_image(&context).await? {
|
match contact.get_profile_image(&context).await? {
|
||||||
Some(image) => image.to_str().unwrap().to_string(),
|
Some(image) => image.to_str().unwrap().to_string(),
|
||||||
None => "NoIcon".to_string(),
|
None => "NoIcon".to_string(),
|
||||||
}
|
},
|
||||||
|
addr
|
||||||
);
|
);
|
||||||
|
|
||||||
res += &Contact::get_encrinfo(&context, contact_id).await?;
|
res += &Contact::get_encrinfo(&context, contact_id).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user