mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
fix bug resulting in LinphoneFriend's main sip address not being updated.
This commit is contained in:
parent
a567e95ee1
commit
df5339911d
2 changed files with 4 additions and 2 deletions
|
|
@ -744,8 +744,6 @@ void linphone_friend_edit(LinphoneFriend *fr) {
|
|||
void linphone_friend_done(LinphoneFriend *fr) {
|
||||
ms_return_if_fail(fr);
|
||||
if (!fr->lc) return;
|
||||
linphone_friend_apply(fr, fr->lc);
|
||||
linphone_friend_save(fr, fr->lc);
|
||||
|
||||
if (fr && linphone_core_vcard_supported() && fr->vcard) {
|
||||
if (linphone_vcard_compare_md5_hash(fr->vcard) != 0) {
|
||||
|
|
@ -756,6 +754,8 @@ void linphone_friend_done(LinphoneFriend *fr) {
|
|||
}
|
||||
}
|
||||
}
|
||||
linphone_friend_apply(fr, fr->lc);
|
||||
linphone_friend_save(fr, fr->lc);
|
||||
}
|
||||
|
||||
#if __clang__ || ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4)
|
||||
|
|
|
|||
|
|
@ -545,7 +545,9 @@ static void simple_subscribe_with_friend_from_rc(void) {
|
|||
|
||||
if (bctbx_list_size(linphone_core_get_friend_list(marie->lc))>0) {
|
||||
pauline_as_friend = (LinphoneFriend*)linphone_core_get_friend_list(marie->lc)->data;
|
||||
linphone_friend_edit(pauline_as_friend);
|
||||
linphone_friend_set_address(pauline_as_friend, pauline->identity); /*hack to update addr with port number*/
|
||||
linphone_friend_done(pauline_as_friend);
|
||||
}
|
||||
|
||||
BC_ASSERT_TRUE (wait_for(marie->lc,pauline->lc,&marie->stat.number_of_LinphonePresenceActivityOnline,1));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue