Refactor summary view to be configurable via a view model

This commit is contained in:
ismailgulek
2021-11-18 17:46:14 +03:00
parent c008c98703
commit 20ed38ce0f
4 changed files with 74 additions and 38 deletions
@@ -514,7 +514,7 @@ const CGFloat kTypingCellHeight = 24;
// display thread summary view if the component has a thread in the room timeline
if (RiotSettings.shared.enableThreads && component.thread && !self.threadId)
{
threadSummaryView = [ThreadSummaryView instantiateWithThread:component.thread];
threadSummaryView = [[ThreadSummaryView alloc] initWithThread:component.thread];
threadSummaryView.delegate = self;
[temporaryViews addObject:threadSummaryView];