mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
Fixed linphone_friend_add_address to behave like linphone_friend_set_address if there is no LinphoneAddress set yet
This commit is contained in:
parent
465559dd66
commit
c2a77c9533
1 changed files with 6 additions and 0 deletions
|
|
@ -221,6 +221,12 @@ void linphone_friend_add_address(LinphoneFriend *lf, const LinphoneAddress *addr
|
|||
return;
|
||||
}
|
||||
|
||||
if (lf->uri == NULL) {
|
||||
LinphoneAddress *fr = linphone_address_clone(addr);
|
||||
linphone_address_clean(fr);
|
||||
lf->uri = fr;
|
||||
}
|
||||
|
||||
vcard = linphone_friend_get_vcard(lf);
|
||||
if (!vcard) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue