From 1be0484d43764853b93783a920253f957b08ca9c Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 15 Sep 2016 11:36:04 +0200 Subject: [PATCH] do not send full list subcription if a single friend has been edited. --- coreapi/friend.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coreapi/friend.c b/coreapi/friend.c index 6e1e81ea9..95f86620a 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -757,9 +757,15 @@ void linphone_friend_apply(LinphoneFriend *fr, LinphoneCore *lc) { } fr->inc_subscribe_pending = FALSE; } +#if 0 + /*triggering a list subscription update from here is probably not a good idea, as linphone_friend_done() may be called + * for thousand of LinphoneFriend sequentially. + * It is preferable that the application calls linphone_friend_list_update_subscriptions() once it has performmed + * all modifications to friends in the list.*/ if (fr->lc) { linphone_friend_list_update_subscriptions(fr->friend_list, NULL, linphone_core_should_subscribe_friends_only_when_registered(fr->lc)); } +#endif ms_debug("linphone_friend_apply() done."); lc->bl_refresh=TRUE; fr->commit=FALSE;