add chat room event deletion

This commit is contained in:
Benjamin Reis 2017-11-30 10:17:27 +01:00
parent 0644a64032
commit 539f68fa1f
2 changed files with 3 additions and 3 deletions

View file

@ -216,7 +216,7 @@
if (editingStyle == UITableViewCellEditingStyleDelete) {
[tableView beginUpdates];
LinphoneEventLog *event = bctbx_list_nth_data(eventList, (int)[indexPath row]);
//linphone_chat_room_delete_message(_chatRoom, chat);
linphone_event_log_delete_from_database(event);
eventList = bctbx_list_remove(eventList, event);
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath]
@ -228,7 +228,7 @@
- (void)removeSelectionUsing:(void (^)(NSIndexPath *))remover {
[super removeSelectionUsing:^(NSIndexPath *indexPath) {
LinphoneEventLog *event = bctbx_list_nth_data(eventList, (int)[indexPath row]);
//linphone_chat_room_delete_message(_chatRoom, chat);
linphone_event_log_delete_from_database(event);
eventList = bctbx_list_remove(eventList, event);
}];
}

@ -1 +1 @@
Subproject commit 91a64a746292af23ed74a99ec76cb0c255ff34fa
Subproject commit cea7ca8bb14a2cf087e6417f5ab49aa45eb04a66