mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fixed findFriendByAddress
This commit is contained in:
parent
d835f50943
commit
d8b1d318b2
1 changed files with 5 additions and 2 deletions
|
|
@ -762,8 +762,11 @@ void linphone_friend_list_synchronize_friends_from_server(LinphoneFriendList *li
|
|||
|
||||
LinphoneFriend * linphone_friend_list_find_friend_by_address(const LinphoneFriendList *list, const LinphoneAddress *address) {
|
||||
LinphoneAddress *clean_addr = linphone_address_clone(address);
|
||||
linphone_address_clean(clean_addr); // Remove any gruu param
|
||||
return linphone_friend_list_find_friend_by_uri(list, linphone_address_as_string_uri_only(clean_addr));
|
||||
LinphoneFriend *lf;
|
||||
linphone_address_set_uri_param(clean_addr, "gr", NULL); // Remove any gruu param
|
||||
lf = linphone_friend_list_find_friend_by_uri(list, linphone_address_as_string_uri_only(clean_addr));
|
||||
linphone_address_unref(clean_addr);
|
||||
return lf;
|
||||
}
|
||||
|
||||
LinphoneFriend * linphone_friend_list_find_friend_by_uri(const LinphoneFriendList *list, const char *uri) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue