Commit c2a77c95 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed linphone_friend_add_address to behave like linphone_friend_set_address...

Fixed linphone_friend_add_address to behave like linphone_friend_set_address if there is no LinphoneAddress set yet
parent 465559dd
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment