Commit d8b1d318 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed findFriendByAddress

parent d835f509
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment