Read receipts: They are now counted at the MatrixKit level

This commit is contained in:
manuroe
2019-06-18 12:28:59 +02:00
parent 0a7235ed6c
commit 611765fb63
2 changed files with 1 additions and 7 deletions
@@ -71,10 +71,6 @@ static NSAttributedString *timestampVerticalWhitespace = nil;
// Increase maximum number of components
self.maxComponentCount = 20;
// Initialize read receipts
self.readReceipts = [NSMutableDictionary dictionary];
self.readReceipts[event.eventId] = [roomDataSource.room getEventReceipts:event.eventId sorted:YES];
// Reset attributedTextMessage to force reset MXKRoomCellData parameters
self.attributedTextMessage = nil;
@@ -550,9 +546,6 @@ static NSAttributedString *timestampVerticalWhitespace = nil;
return NO;
}
// Update read receipts for this bubble
self.readReceipts[event.eventId] = [roomDataSource.room getEventReceipts:event.eventId sorted:YES];
return [super addEvent:event andRoomState:roomState];
}