mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 15:02:40 +00:00
(feat) handle multiple home/work phones, emails and urls
This commit is contained in:
1 parent
8cef98eba1
commit
38713a6c67
3 files changed
+16
-9
No files matched your search
@@ -430,8 +430,9 @@ static Class SOGoContactGCSEntryK = Nil;
|
||||
{
|
||||
if ([attrs isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
element = [card elementWithTag: @"tel" ofType: [attrs objectForKey: @"type"]];
|
||||
[element setSingleValue: [attrs objectForKey: @"value"] forKey: @""];
|
||||
[card addElementWithTag: @"tel"
|
||||
ofType: [attrs objectForKey: @"type"]
|
||||
withValue: [attrs objectForKey: @"value"]];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -448,8 +449,9 @@ static Class SOGoContactGCSEntryK = Nil;
|
||||
{
|
||||
if ([o isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
element = [card elementWithTag: @"email" ofType: [o objectForKey: @"type"]];
|
||||
[element setSingleValue: [o objectForKey: @"value"] forKey: @""];
|
||||
[card addElementWithTag: @"email"
|
||||
ofType: [o objectForKey: @"type"]
|
||||
withValue: [o objectForKey: @"value"]];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -466,8 +468,9 @@ static Class SOGoContactGCSEntryK = Nil;
|
||||
{
|
||||
if ([attrs isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
element = [card elementWithTag: @"url" ofType: [attrs objectForKey: @"type"]];
|
||||
[element setSingleValue: [attrs objectForKey: @"value"] forKey: @""];
|
||||
[card addElementWithTag: @"url"
|
||||
ofType: [attrs objectForKey: @"type"]
|
||||
withValue: [attrs objectForKey: @"value"]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user