Message bubble: Improve thread summary positioning.

This commit is contained in:
SBiOSoftWhare
2022-02-07 22:22:18 +01:00
parent e224ca3b42
commit fd8cd9c2fe
5 changed files with 14 additions and 2 deletions
@@ -137,7 +137,11 @@ class SizableBaseBubbleCell: BaseBubbleCell, SizableBaseBubbleCellType {
if sizingView is BubbleCellThreadSummaryDisplayable,
let roomBubbleCellData = cellData as? RoomBubbleCellData,
roomBubbleCellData.hasThreadRoot {
let bottomMargin = sizingView.bubbleCellContentView?.threadSummaryContentViewBottomConstraint.constant ?? 0
height += RoomBubbleCellLayout.threadSummaryViewHeight
height += bottomMargin
}
// Add URL preview view height if needed