Create ThreadSummaryView

This commit is contained in:
ismailgulek
2021-11-09 16:50:02 +03:00
parent aee29cc1e0
commit 7a9770eb51
3 changed files with 203 additions and 2 deletions
@@ -625,8 +625,7 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
// component is not a thread root
return 0;
}
// TODO: Fix hardcoded height
return RoomBubbleCellLayout.threadSummaryViewTopMargin + 30;
return RoomBubbleCellLayout.threadSummaryViewTopMargin + [ThreadSummaryView contentViewHeightForThread:component.thread fitting:self.maxTextViewWidth];
}
- (CGFloat)urlPreviewHeightForEventId:(NSString*)eventId