diff --git a/cassandane/tiny-tests/JMAPContacts/card-get-v3 b/cassandane/tiny-tests/JMAPContacts/card-get-v3 index ff22aca2ffa..b40cc96442a 100644 --- a/cassandane/tiny-tests/JMAPContacts/card-get-v3 +++ b/cassandane/tiny-tests/JMAPContacts/card-get-v3 @@ -74,7 +74,6 @@ EOF 'name' => 'Bubba Gump Shrimp Co.' }, $res->[0][1]{list}[0]{organizations}{O1}); $self->assert_deep_equals({ - 'kind' => 'title', 'name' => 'Shrimp Man' }, $res->[0][1]{list}[0]{titles}{T1}); $self->assert_deep_equals({ diff --git a/imap/jmap_contact.c b/imap/jmap_contact.c index a84c7a10280..10e2143975e 100644 --- a/imap/jmap_contact.c +++ b/imap/jmap_contact.c @@ -7016,11 +7016,9 @@ static json_t *jmap_card_from_vcard(const char *userid, case VCARD_TITLE_PROPERTY: { json_t *titles = json_object_get_vanew(obj, "titles", "{}"); - if (!kind) kind = "title"; - prop_value = vcardproperty_get_title(prop); json_object_set_new(titles, _prop_id(prop), - json_pack("{s:s s:o}", + json_pack("{s:s* s:o}", "kind", kind, "name", jmap_utf8string(prop_value)));