Use thread protocols where possible

This commit is contained in:
ismailgulek
2022-02-11 18:11:44 +03:00
parent 5666cd9765
commit f2e8faf54e
8 changed files with 30 additions and 16 deletions
@@ -130,6 +130,6 @@
@param roomDataSource room data source instance
*/
- (void)roomDataSource:(RoomDataSource * _Nonnull)roomDataSource
didTapThread:(MXThread * _Nonnull)thread;
didTapThread:(id<MXThreadProtocol> _Nonnull)thread;
@end
@@ -466,7 +466,8 @@ 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 alloc] initWithThread:component.thread];
threadSummaryView = [[ThreadSummaryView alloc] initWithThread:component.thread
session:self.mxSession];
threadSummaryView.delegate = self;
threadSummaryView.tag = index;