mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
RoomDataSource: Fix bubble cell data additional content height update.
This commit is contained in:
@@ -120,6 +120,31 @@
|
||||
[super destroy];
|
||||
}
|
||||
|
||||
- (void)updateCellDataReactions:(id<MXKRoomBubbleCellDataStoring>)cellData forEventId:(NSString*)eventId
|
||||
{
|
||||
[super updateCellDataReactions:cellData forEventId:eventId];
|
||||
|
||||
[self setNeedsUpdateAdditionalContentHeightForCellData:cellData];
|
||||
}
|
||||
|
||||
- (void)updateCellData:(MXKRoomBubbleCellData*)cellData withReadReceipts:(NSArray<MXReceiptData*>*)readReceipts forEventId:(NSString*)eventId
|
||||
{
|
||||
[super updateCellData:cellData withReadReceipts:readReceipts forEventId:eventId];
|
||||
|
||||
[self setNeedsUpdateAdditionalContentHeightForCellData:cellData];
|
||||
}
|
||||
|
||||
- (void)setNeedsUpdateAdditionalContentHeightForCellData:(id<MXKRoomBubbleCellDataStoring>)cellData
|
||||
{
|
||||
RoomBubbleCellData *roomBubbleCellData;
|
||||
|
||||
if ([cellData isKindOfClass:[RoomBubbleCellData class]])
|
||||
{
|
||||
roomBubbleCellData = (RoomBubbleCellData*)cellData;
|
||||
[roomBubbleCellData setNeedsUpdateAdditionalContentHeight];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
|
||||
Reference in New Issue
Block a user