mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
Display contact name as much as possible
This commit is contained in:
parent
5f8abe5ce7
commit
076d0c31ae
2 changed files with 4 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue