Display contact name as much as possible

This commit is contained in:
Benjamin Reis 2017-02-16 17:09:03 +01:00
parent 5f8abe5ce7
commit 076d0c31ae
2 changed files with 4 additions and 1 deletions

View file

@ -675,7 +675,6 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char
#if !TARGET_IPHONE_SIMULATOR
NSString *callId =
[NSString stringWithUTF8String:linphone_call_log_get_call_id(linphone_call_get_call_log(call))];
NSString *address = [FastAddressBook displayNameForAddress:linphone_call_get_remote_address(call)];
NSUUID *uuid = [NSUUID UUID];
[LinphoneManager.instance.providerDelegate.calls setObject:callId forKey:uuid];

View file

@ -311,6 +311,10 @@ void sync_address_book(ABAddressBookRef addressBook, CFDictionaryRef info, void
ret = [NSString stringWithUTF8String:lUserName];
}
}
LinphoneFriend *friend = linphone_core_find_friend(LC, addr);
if (friend) {
ret = [NSString stringWithUTF8String:linphone_friend_get_name(friend)];
}
return ret;
}