mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +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 = 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?;
|
||||
|
||||
Reference in New Issue
Block a user