RoomDataSource: Handle extra cell layout update if needed.

This commit is contained in:
SBiOSoftWhare
2022-01-14 10:11:13 +01:00
parent 4a27aaaf2f
commit dc2d6732af
@@ -717,11 +717,20 @@ const CGFloat kTypingCellHeight = 24;
{
[bubbleCell updateTickViewWithFailedEventIds:self.failedEventIds];
}
[self updateCellLayoutIfNeeded:bubbleCell withCellData:cellData];
}
return cell;
}
- (void)updateCellLayoutIfNeeded:(MXKRoomBubbleTableViewCell*)cell withCellData:(MXKRoomBubbleCellData*)cellData {
RoomTimelineConfiguration *timelineConfiguration = [RoomTimelineConfiguration shared];
[timelineConfiguration.currentStyle.cellLayoutUpdater updateLayoutIfNeededFor:cell andCellData:cellData];
}
- (RoomBubbleCellData*)roomBubbleCellDataForEventId:(NSString*)eventId
{
id<MXKRoomBubbleCellDataStoring> cellData = [self cellDataOfEventWithEventId:eventId];