Add invalidateLayout to RoomBubbleCellData.

This commit is contained in:
Doug
2021-09-29 10:36:35 +01:00
parent 2096b12bfc
commit 57018f90ee
3 changed files with 22 additions and 9 deletions
@@ -95,6 +95,16 @@ typedef NS_ENUM(NSInteger, RoomBubbleCellDataTag)
*/
@property(nonatomic) NSInteger componentIndexOfSentMessageTick;
/**
Indicate that both the text message layout and any additional content height are no longer
valid and should be recomputed before presentation in a bubble cell. This could be due
to a content change, or the available space for the cell has been updated.
This is a convenience method that calls `invalidateTextLayout` and
`setNeedsUpdateAdditionalContentHeight` together.
*/
- (void)invalidateLayout;
/**
Indicate to update additional content height.
*/