Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
d8b1d318
Commit
d8b1d318
authored
Dec 01, 2017
by
Sylvain Berfini
🐮
Browse files
Fixed findFriendByAddress
parent
d835f509
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/friendlist.c
View file @
d8b1d318
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment