mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
Fix cell height for call tiles if read receipts displayed
This commit is contained in:
@@ -130,7 +130,16 @@ class RoomBaseCallBubbleCell: MXKRoomBubbleTableViewCell {
|
||||
}
|
||||
cell.render(cellData)
|
||||
|
||||
return cell.contentView.systemLayoutSizeFitting(fittingSize).height
|
||||
// we need to add suitable height manually for read receipts view, as adding of them is not handled in the render method
|
||||
var readReceiptsHeight: CGFloat = 0
|
||||
if let bubbleCellData = cellData as? RoomBubbleCellData,
|
||||
bubbleCellData.showBubbleReceipts,
|
||||
bubbleCellData.readReceipts.count > 0 {
|
||||
readReceiptsHeight = cell.innerContentView.readReceiptsContainerView.systemLayoutSizeFitting(fittingSize).height
|
||||
+ cell.innerContentView.interItemSpacing
|
||||
}
|
||||
|
||||
return cell.contentView.systemLayoutSizeFitting(fittingSize).height + readReceiptsHeight
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user