(fix) fallback to email if no cn is found (should avoid displaying bogus chips)

This commit is contained in:
Ludovic Marcotte
2016-06-21 15:57:35 -04:00
parent b72b52f052
commit 1efeca72c5
2 changed files with 3 additions and 3 deletions

View File

@@ -546,7 +546,7 @@
person = [participants objectAtIndex: i];
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 partStatWithDefault] lowercaseString], @"partstat", nil]];
}