update store, msg for new contacts-cache handling

This commit is contained in:
djcb
2019-05-11 13:29:23 +03:00
parent c858651d0c
commit 9edcae0203
6 changed files with 49 additions and 39 deletions

View File

@ -102,8 +102,8 @@ add_contact (JsonArray **arr, MuMsgContact *c)
cell = json_object_new ();
if (c->name)
json_object_set_string_member (cell, "name", c->name);
if (c->address)
json_object_set_string_member (cell, "email", c->address);
if (c->email)
json_object_set_string_member (cell, "email", c->email);
json_array_add_object_element (*arr, cell); /* consumes */
}