From aee7262ebb93308f027ad36198bf44eb253d7398 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Tue, 30 Jan 2018 15:19:55 +0100 Subject: [PATCH] fix to not empty twice a chat room callbacks --- Classes/ChatsListTableView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/ChatsListTableView.m b/Classes/ChatsListTableView.m index a4be2aea1..c1d1a6f2f 100644 --- a/Classes/ChatsListTableView.m +++ b/Classes/ChatsListTableView.m @@ -187,6 +187,7 @@ void deletion_chat_room_state_changed(LinphoneChatRoom *cr, LinphoneChatRoomStat LinphoneChatRoomCbs *cbs = linphone_chat_room_get_callbacks(cr); linphone_chat_room_cbs_set_state_changed(cbs, NULL); linphone_chat_room_cbs_set_user_data(cbs, NULL); + view.chatRooms = bctbx_list_remove(view.chatRooms, cr); view.nbOfChatRoomToDelete--; }