forked from mirrors/linphone-iphone
not use nickname as displyname if empty
This commit is contained in:
parent
91b0c38a2f
commit
cced8b3258
2 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@
|
|||
NSString *lOrganization = _person.organizationName;
|
||||
NSString *lLocalizedOrganization = [FastAddressBook localizedLabel:lOrganization];
|
||||
|
||||
if (compositeName)
|
||||
if (compositeName && ![compositeName isEqualToString:@""])
|
||||
return compositeName;
|
||||
if (lLocalizedFirstName || lLocalizedLastName)
|
||||
return [NSString stringWithFormat:@"%@ %@", lLocalizedFirstName, lLocalizedLastName];
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@
|
|||
|
||||
+ (NSString *)displayNameForAddress:(const LinphoneAddress *)addr {
|
||||
Contact *contact = [FastAddressBook getContactWithAddress:addr];
|
||||
if (contact && ![contact.displayName isEqualToString:@""])
|
||||
if (contact && ![contact.displayName isEqualToString:NSLocalizedString(@"Unknown", nil)])
|
||||
return [FastAddressBook displayNameForContact:contact];
|
||||
|
||||
LinphoneFriend *friend = linphone_core_find_friend(LC, addr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue