1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 02:29:28 +02:00

add a flag paramter to the get_contacts function

This commit is contained in:
B. Petersen 2018-04-18 16:54:01 +02:00
parent fe126f9628
commit 374f790b02
5 changed files with 18 additions and 7 deletions

View file

@ -1110,7 +1110,7 @@ char* mrmailbox_cmdline(mrmailbox_t* mailbox, const char* cmdline)
else if( strcmp(cmd, "listcontacts")==0 || strcmp(cmd, "contacts")==0 )
{
mrarray_t* contacts = mrmailbox_get_known_contacts(mailbox, arg1);
mrarray_t* contacts = mrmailbox_get_contacts(mailbox, 0, arg1);
if( contacts ) {
log_contactlist(mailbox, contacts);
ret = mr_mprintf("%i contacts.", (int)mrarray_get_cnt(contacts));