mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Iterate over all friend lists when notifying presence
This commit is contained in:
parent
298ad5731c
commit
33d02aadb8
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue