Skip to content

Commit

Permalink
jmap_contact.c: don't add kind:title, since its the default
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Jun 19, 2023
1 parent dc6e8e3 commit ba6307a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion cassandane/tiny-tests/JMAPContacts/card-get-v3
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 1 addition & 3 deletions imap/jmap_contact.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit ba6307a

Please sign in to comment.