mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 07:38:09 +00:00
friend.c: linphone_friend_get_addresses must return at least URI if we are not using vcard
This commit is contained in:
parent
4897a3addb
commit
36fd57c45b
1 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ MSList* linphone_friend_get_addresses(LinphoneFriend *lf) {
|
|||
|
||||
vcard = linphone_friend_get_vcard(lf);
|
||||
if (!vcard) {
|
||||
return NULL;
|
||||
return lf->uri ? ms_list_append(addresses, lf->uri) : NULL;
|
||||
}
|
||||
|
||||
sipAddresses = linphone_vcard_get_sip_addresses(vcard);
|
||||
|
|
@ -615,7 +615,7 @@ void linphone_friend_save(LinphoneFriend *fr, LinphoneCore *lc) {
|
|||
|
||||
void linphone_friend_apply(LinphoneFriend *fr, LinphoneCore *lc) {
|
||||
LinphonePresenceModel *model;
|
||||
|
||||
|
||||
if (!fr->uri) {
|
||||
ms_warning("No sip url defined.");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue