forked from mirrors/linphone-iphone
Handle the if contact has no name or surname
This commit is contained in:
parent
3bfffc2103
commit
c6aa055dab
1 changed files with 1 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ void sync_address_book(ABAddressBookRef addressBook, CFDictionaryRef info, void
|
|||
ret = [FastAddressBook displayNameForContact:contact];
|
||||
} else if (friend) {
|
||||
ret = [NSString stringWithUTF8String:linphone_friend_get_name(friend)];
|
||||
ret = [ret stringByReplacingOccurrencesOfString:@"(null)" withString:@""];
|
||||
} else {
|
||||
const char *lDisplayName = linphone_address_get_display_name(addr);
|
||||
const char *lUserName = linphone_address_get_username(addr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue