From 1163f191be3c07b510f021458a51434e608c2d18 Mon Sep 17 00:00:00 2001 From: SBiOSoftWhare Date: Fri, 14 Jan 2022 11:15:38 +0100 Subject: [PATCH] BubbleRoomCellLayoutUpdater: Update bubble height computation. --- .../BubbleCells/Styles/Bubble/BubbleRoomCellLayoutUpdater.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/BubbleRoomCellLayoutUpdater.swift b/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/BubbleRoomCellLayoutUpdater.swift index 874be05e3..af7360cd2 100644 --- a/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/BubbleRoomCellLayoutUpdater.swift +++ b/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/BubbleRoomCellLayoutUpdater.swift @@ -196,7 +196,7 @@ class BubbleRoomCellLayoutUpdater: RoomCellLayoutUpdaterProtocol { let firstEventId = firstComponent.event.eventId let firstMessageTopPosition = cell.topPosition(ofEvent: firstEventId) - let additionalContentHeight = roomBubbleCellData.additionalHeight(forEvent: lastEventId) + let additionalContentHeight = roomBubbleCellData.additionalContentHeight bubbleHeight = lastMessageBottomPosition - firstMessageTopPosition - additionalContentHeight + bottomMargin