From e43d58fb2b1a9d88ebee6d0afdc47d283dd82455 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 10 Nov 2017 14:36:30 +0100 Subject: [PATCH] Remove participant before the onParticipantRemoved callback on ChatRoom so the participants list is correct in the callback --- src/chat/chat-room/client-group-chat-room.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/chat-room/client-group-chat-room.cpp b/src/chat/chat-room/client-group-chat-room.cpp index 1cf7f0250..662a7b36e 100644 --- a/src/chat/chat-room/client-group-chat-room.cpp +++ b/src/chat/chat-room/client-group-chat-room.cpp @@ -317,6 +317,8 @@ void ClientGroupChatRoom::onParticipantRemoved (const shared_ptrparticipants.remove(participant); + LinphoneChatRoom *cr = L_GET_C_BACK_PTR(this); LinphoneChatRoomCbs *cbs = linphone_chat_room_get_callbacks(cr); LinphoneChatRoomCbsParticipantRemovedCb cb = linphone_chat_room_cbs_get_participant_removed(cbs); @@ -324,8 +326,6 @@ void ClientGroupChatRoom::onParticipantRemoved (const shared_ptrparticipants.remove(participant); } void ClientGroupChatRoom::onParticipantSetAdmin (const shared_ptr &event, bool isFullState) {