MESSENGER-4197 fix status messages cut off

This commit is contained in:
JanNiklas Grabowski
2023-03-07 12:14:51 +00:00
committed by Frank Rotermund
parent 876de5e1ad
commit d43f1bfed3
6 changed files with 15 additions and 4 deletions
@@ -895,7 +895,8 @@ static BOOL _disableLongPressGestureOnEvent;
id<RoomCellLayoutUpdating> cellLayoutUpdater = timelineConfiguration.currentStyle.cellLayoutUpdater;
// Handle updated text view layout if needed
if (cellLayoutUpdater)
// bwi: don't use cellLayoutUpdater for status messages (bubbleData.tag / RoomBubbleCellDataTag == 1 and 2), fixes cell sizing problem (status messages getting cut off)
if (cellLayoutUpdater && bubbleData.tag != 2 && bubbleData.tag != 1)
{
maxTextViewWidth = [cellLayoutUpdater maximumTextViewWidthFor:cell cellData:cellData maximumCellWidth:maxWidth];
}