diff --git a/README.md b/README.md index 1297d6953..f5fb28063 100644 --- a/README.md +++ b/README.md @@ -84,26 +84,29 @@ Create a contact: ``` > addcontact yourfriends@email.org -Command executed successfully. ``` List contacts: ``` > listcontacts -Contact#10: -Contact#1: Me √√ +Contact#Contact#Self: Me √ +1 key contacts. +Contact#Contact#10: yourfriends@email.org +1 address contacts. ``` Create a chat with your friend and send a message: ``` > createchat 10 -Single#10 created successfully. -> chat 10 -Single#10: yourfriends@email.org [yourfriends@email.org] +Single#Chat#12 created successfully. +> chat 12 +Selecting chat Chat#12 +Single#Chat#12: yourfriends@email.org [yourfriends@email.org] Icon: profile-db-blobs/4138c52e5bc1c576cda7dd44d088c07.png +0 messages. +81.252µs to create this list, 123.625µs to mark all messages as noticed. > send hi -Message sent. ``` List messages when inside a chat: diff --git a/deltachat-repl/src/cmdline.rs b/deltachat-repl/src/cmdline.rs index 1e6def46f..a01c16a06 100644 --- a/deltachat-repl/src/cmdline.rs +++ b/deltachat-repl/src/cmdline.rs @@ -1151,7 +1151,10 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu "listcontacts" | "contacts" => { let contacts = Contact::get_all(&context, DC_GCL_ADD_SELF, Some(arg1)).await?; log_contactlist(&context, &contacts).await?; - println!("{} contacts.", contacts.len()); + println!("{} key contacts.", contacts.len()); + let addrcontacts = Contact::get_all(&context, DC_GCL_ADDRESS, Some(arg1)).await?; + log_contactlist(&context, &addrcontacts).await?; + println!("{} address contacts.", addrcontacts.len()); } "addcontact" => { ensure!(!arg1.is_empty(), "Arguments [] expected.");