Fix cell layout when thread root is a poll

This commit is contained in:
ismailgulek
2022-01-18 23:41:36 +03:00
parent 31821e205f
commit 11cfae66c7
10 changed files with 135 additions and 34 deletions
@@ -130,6 +130,13 @@ class SizableBaseBubbleCell: BaseBubbleCell, SizableBaseBubbleCellType {
let reactionsHeight = self.reactionsViewSizer.height(for: bubbleReactionsViewModel, fittingWidth: reactionWidth)
height+=reactionsHeight
}
// Add thread summary view height if needed
if sizingView is BubbleCellThreadSummaryDisplayable,
let roomBubbleCellData = cellData as? RoomBubbleCellData,
roomBubbleCellData.hasThreadRoot {
height += RoomBubbleCellLayout.threadSummaryViewHeight
}
return height
}