mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
MESSENGER-4197 fix status messages cut off
This commit is contained in:
committed by
Frank Rotermund
parent
876de5e1ad
commit
d43f1bfed3
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user