mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
add alais address to firend amp
This commit is contained in:
parent
0f45a2acee
commit
376f8ead9c
1 changed files with 8 additions and 1 deletions
|
|
@ -315,7 +315,14 @@ static void linphone_friend_list_parse_multipart_related_body(LinphoneFriendList
|
|||
while (iterator) {
|
||||
const char *number = (const char *)bctbx_list_get_data(iterator);
|
||||
const LinphonePresenceModel *presence = linphone_friend_get_presence_model_for_uri_or_tel(lf, number);
|
||||
if (presence) linphone_core_notify_notify_presence_received_for_uri_or_tel(list->lc, lf, number, presence);
|
||||
if (presence) {
|
||||
char *presence_address = linphone_presence_model_get_contact(presence);
|
||||
if(!linphone_friend_list_find_friend_by_uri(lf->friend_list, presence_address)) {
|
||||
bctbx_pair_t *pair = (bctbx_pair_t*) bctbx_pair_cchar_new(presence_address, linphone_friend_ref(lf));
|
||||
bctbx_map_cchar_insert_and_delete(lf->friend_list->friends_map_uri, pair);
|
||||
}
|
||||
linphone_core_notify_notify_presence_received_for_uri_or_tel(list->lc, lf, number, presence);
|
||||
}
|
||||
iterator = bctbx_list_next(iterator);
|
||||
}
|
||||
if (numbers) bctbx_list_free(numbers);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue