MXKRoomBubbleTableViewCell: Add convenient method to add temporary subview.

This commit is contained in:
SBiOSoftWhare
2022-01-18 14:25:43 +01:00
parent 1b8cf235ad
commit f2cd425037
2 changed files with 13 additions and 0 deletions
@@ -325,4 +325,7 @@ extern NSString *const kMXKRoomBubbleCellUrlItemInteraction;
*/
- (void)setupViews;
/// Add temporary subview to `tmpSubviews` property.
- (void)addTmpSubview:(UIView*)subview;
@end
@@ -1130,6 +1130,16 @@ static BOOL _disableLongPressGestureOnEvent;
[self resetAttachmentViewBottomConstraintConstant];
}
- (void)addTmpSubview:(UIView*)subview
{
if (!self.tmpSubviews)
{
self.tmpSubviews = [NSMutableArray new];
}
[self.tmpSubviews addObject:subview];
}
#pragma mark - Attachment progress handling
- (void)updateProgressUI:(NSDictionary*)statisticsDict