fix(addressbook): handle vCard with multiple title values

This commit is contained in:
Francis Lachapelle
2020-07-07 14:14:08 -04:00
parent 747ba75503
commit 96c22b6b96
4 changed files with 51 additions and 8 deletions
+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"];