Create ThreadSummaryView

This commit is contained in:
ismailgulek
2021-11-09 16:50:02 +03:00
parent 9a7095ea4b
commit 8cfbf9c4c7
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