fix(addressbook): handle vCard with multiple title values

This commit is contained in:
Francis Lachapelle committed 2020-07-07 14:14:08 -04:00
1 parent 747ba75503
commit 96c22b6b96
4 files changed
+51 -8

No files matched your search

+3 -3
View File
@@ -320,9 +320,9 @@
o = [card nickname];
if (o) [data setObject: o forKey: @"nickname"];
o = [card title];
if ([o length] > 0)
[data setObject: o forKey: @"title"];
o = [card titles];
if ([o count])
[data setObject: [o componentsJoinedByString: @" / "] forKey: @"title"];
o = [card role];
if ([o length] > 0)
[data setObject: o forKey: @"role"];