From 33d02aadb8c261c90930a68f1d7361f470155215 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Thu, 10 Mar 2016 12:03:45 +0100 Subject: [PATCH] Iterate over all friend lists when notifying presence --- coreapi/linphonecore.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index fee6d8ea8..28b3bf9e1 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1695,7 +1695,13 @@ static void linphone_core_register_default_codecs(LinphoneCore *lc){ static void linphone_core_internal_notify_received(LinphoneCore *lc, LinphoneEvent *lev, const char *notified_event, const LinphoneContent *body) { if (strcmp(notified_event, "Presence") == 0) { - linphone_friend_list_notify_presence_received(linphone_core_get_default_friend_list(lc), lev, body); + const MSList* friendLists = linphone_core_get_friends_lists(lc); + while( friendLists != NULL ){ + LinphoneFriendList* list = friendLists->data; + ms_warning("notify presence for list %p", list); + linphone_friend_list_notify_presence_received(list, lev, body); + friendLists = friendLists->next; + } } }