This commit is contained in:
Benjamin Verdier 2018-06-25 16:22:51 +02:00
commit f1e04a31fc

View file

@ -75,8 +75,6 @@
while (chatRoomEvents) {
LinphoneEventLog *event = (LinphoneEventLog *)chatRoomEvents->data;
[eventList addObject:[NSValue valueWithPointer:linphone_event_log_ref(event)]];
LOGD([NSString stringWithFormat:@"adding event at adress: %p", [[eventList lastObject] pointerValue]]);
chatRoomEvents = chatRoomEvents->next;
}
bctbx_list_free_with_data(head, (bctbx_list_free_func)linphone_event_log_unref);
@ -99,7 +97,6 @@
}
- (void)addEventEntry:(LinphoneEventLog *)event {
LOGD([NSString stringWithFormat:@"adding event at adress: %p", event]);
[eventList addObject:[NSValue valueWithPointer:linphone_event_log_ref(event)]];
int pos = (int)eventList.count - 1;
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:pos inSection:0];
@ -109,7 +106,6 @@
}
- (void)updateEventEntry:(LinphoneEventLog *)event {
LOGD([NSString stringWithFormat:@"updating event at adress: %p", event]);
NSInteger index = [eventList indexOfObject:[NSValue valueWithPointer:event]];
if (index < 0) {
LOGW(@"event entry doesn't exist");
@ -206,7 +202,6 @@
if (!cell) {
cell = [[NSClassFromString(kCellId) alloc] initWithIdentifier:kCellId];
}
LOGD([NSString stringWithFormat:@"event adress: %p", event]);
[cell setEvent:event];
if (chat)
[cell update];