Commit 1fde3a87 authored by QuentinArguillere's avatar QuentinArguillere
Browse files

Use linphone_event_log_delete_from_database instead of linphone_chat_room_delete_message.

parent c90658d1
Pipeline #30388 passed with stage
in 6 minutes and 39 seconds
......@@ -343,9 +343,7 @@ static const CGFloat MESSAGE_SPACING_PERCENTAGE = 1.f;
- (void) tableView:(UITableView *)tableView deleteRowAtIndex:(NSIndexPath *)indexPath {
[tableView beginUpdates];
LinphoneEventLog *event = [[eventList objectAtIndex:indexPath.row] pointerValue];
// TODO: fix workaround
linphone_chat_room_delete_message(_chatRoom, linphone_event_log_get_chat_message(event));
NSInteger index = indexPath.row + _currentIndex + (totalEventList.count - eventList.count);
if (index < totalEventList.count)
[totalEventList removeObjectAtIndex:index];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment