Commit 36fd57c4 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

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

parent 4897a3ad
......@@ -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;
......
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