mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 09:48:12 +00:00
(fix) fallback to email if no cn is found (should avoid displaying bogus chips)
This commit is contained in:
1 parent
b72b52f052
commit
1efeca72c5
2 files changed
+3
-3
No files matched your search
@@ -118,7 +118,7 @@ NSNumber *iCalDistantFutureNumber = nil;
|
|||||||
{
|
{
|
||||||
organizerData = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
organizerData = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
||||||
[organizer rfc822Email], @"email",
|
[organizer rfc822Email], @"email",
|
||||||
[organizer cnWithoutQuotes], @"name",
|
([[organizer cnWithoutQuotes] length] ? [organizer cnWithoutQuotes] : [organizer rfc822Email]), @"name",
|
||||||
nil];
|
nil];
|
||||||
uid = [organizer uid];
|
uid = [organizer uid];
|
||||||
if ([uid length]) [organizerData setObject: uid forKey: @"uid"];
|
if ([uid length]) [organizerData setObject: uid forKey: @"uid"];
|
||||||
@@ -134,7 +134,7 @@ NSNumber *iCalDistantFutureNumber = nil;
|
|||||||
{
|
{
|
||||||
attendeeData = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
attendeeData = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
||||||
[currentAttendee rfc822Email], @"email",
|
[currentAttendee rfc822Email], @"email",
|
||||||
[currentAttendee cnWithoutQuotes], @"name",
|
([[currentAttendee cnWithoutQuotes] length] ? [currentAttendee cnWithoutQuotes] : [currentAttendee rfc822Email]) , @"name",
|
||||||
nil];
|
nil];
|
||||||
if ((uid = [currentAttendee uid]))
|
if ((uid = [currentAttendee uid]))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -546,7 +546,7 @@
|
|||||||
person = [participants objectAtIndex: i];
|
person = [participants objectAtIndex: i];
|
||||||
|
|
||||||
if (![[person delegatedTo] length])
|
if (![[person delegatedTo] length])
|
||||||
[a addObject: [NSDictionary dictionaryWithObjectsAndKeys: ([person cnWithoutQuotes] ? [person cnWithoutQuotes] : [person rfc822Email]), @"name",
|
[a addObject: [NSDictionary dictionaryWithObjectsAndKeys: ([[person cnWithoutQuotes] length] ? [person cnWithoutQuotes] : [person rfc822Email]), @"name",
|
||||||
[person rfc822Email], @"email",
|
[person rfc822Email], @"email",
|
||||||
[[person partStatWithDefault] lowercaseString], @"partstat", nil]];
|
[[person partStatWithDefault] lowercaseString], @"partstat", nil]];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user