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
afce2820
Commit
afce2820
authored
Jan 27, 2017
by
Benjamin REIS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add friends from db to map if lf->refkey
parent
92d4bcf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
coreapi/friend.c
coreapi/friend.c
+4
-0
No files found.
coreapi/friend.c
View file @
afce2820
...
...
@@ -1542,6 +1542,10 @@ bctbx_list_t* linphone_core_fetch_friends_from_db(LinphoneCore *lc, LinphoneFrie
LinphoneFriend
*
lf
=
(
LinphoneFriend
*
)
bctbx_list_get_data
(
elem
);
lf
->
lc
=
lc
;
lf
->
friend_list
=
list
;
if
(
lf
->
refkey
)
{
bctbx_pair_t
*
pair
=
(
bctbx_pair_t
*
)
bctbx_pair_cchar_new
(
lf
->
refkey
,
linphone_friend_ref
(
lf
));
bctbx_map_cchar_insert_and_delete
(
list
->
friends_map
,
pair
);
}
linphone_friend_save
(
lf
,
lc
);
/* required if we freshly created vcard but core was not set at this time */
}
linphone_vcard_context_set_user_data
(
lc
->
vcard_context
,
NULL
);
...
...
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