From f291f53e43bb74db29bbc1487b6e73e0ec61d8e3 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 21 Dec 2015 17:25:09 +0100 Subject: [PATCH] When importing friend from vcard, disable presence because currently it takes too much time when dealing with hundreds of vcards/friends --- coreapi/friend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/friend.c b/coreapi/friend.c index ac2ad9970..4ed650f25 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -835,6 +835,9 @@ LinphoneFriend *linphone_friend_new_from_vcard(LinphoneVCard *vcard) { sipAddresses = linphone_vcard_get_sip_addresses(vcard); fr = linphone_friend_new(); + fr->pol = LinphoneSPDeny; + fr->subscribe = FALSE; + linphone_friend_set_vcard(fr, vcard); if (sipAddresses) {