Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
bdf6f37b
Commit
bdf6f37b
authored
Jul 17, 2018
by
Erwan Croze
👋🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix create a linphone friend list if not exist and make it as default in linphone_core_add_friend
parent
13e4797c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
coreapi/friend.c
coreapi/friend.c
+6
-1
No files found.
coreapi/friend.c
View file @
bdf6f37b
...
...
@@ -881,7 +881,12 @@ LinphoneFriend * linphone_core_create_friend_with_address(LinphoneCore *lc, cons
#endif
void
linphone_core_add_friend
(
LinphoneCore
*
lc
,
LinphoneFriend
*
lf
)
{
if
(
linphone_friend_list_add_friend
(
linphone_core_get_default_friend_list
(
lc
),
lf
)
!=
LinphoneFriendListOK
)
return
;
LinphoneFriendList
*
fl
=
linphone_core_get_default_friend_list
(
lc
);
if
(
fl
==
NULL
)
{
fl
=
linphone_core_create_friend_list
(
lc
);
linphone_core_add_friend_list
(
lc
,
fl
);
}
if
(
linphone_friend_list_add_friend
(
fl
,
lf
)
!=
LinphoneFriendListOK
)
return
;
if
(
bctbx_list_find
(
lc
->
subscribers
,
lf
))
{
/*if this friend was in the pending subscriber list, now remove it from this list*/
lc
->
subscribers
=
bctbx_list_remove
(
lc
->
subscribers
,
lf
);
...
...
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