friend.c: linphone_friend_get_addresses must return at least URI if we are not using vcard

This commit is contained in:
Gautier Pelloux-Prayer 2016-05-18 13:22:41 +02:00
parent 4897a3addb
commit 36fd57c45b

View file

@ -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;