fix to not empty twice a chat room callbacks

This commit is contained in:
Benjamin Reis 2018-01-30 15:19:55 +01:00
parent 65ab73efb6
commit aee7262ebb

View file

@ -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--;
}