From e9980c6ca74e0619215fa78f83543cb6f209f4d5 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 30 May 2017 17:41:54 +0200 Subject: [PATCH] Optimize fetching of friends from database (there's absolutely no need to save a friend when fetching from DB). --- coreapi/friend.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/coreapi/friend.c b/coreapi/friend.c index 35382d41a..b6c883b91 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -1640,8 +1640,6 @@ bctbx_list_t* linphone_core_fetch_friends_from_db(LinphoneCore *lc, LinphoneFrie } iterator = bctbx_list_next(iterator); } - - linphone_friend_save(lf, lc); /* required if we freshly created vcard but core was not set at this time */ } linphone_vcard_context_set_user_data(lc->vcard_context, NULL);