Room summary: MXKSessionRecentsDataSource.eventFormatter has been removed. Overide the EventFormatter by another mean

This commit is contained in:
manuroe
2017-03-17 16:46:44 +01:00
parent a8302ce9df
commit d4ce3fa331
2 changed files with 12 additions and 13 deletions
-10
View File
@@ -97,16 +97,6 @@
- (MXKSessionRecentsDataSource *)addMatrixSession:(MXSession *)mxSession
{
MXKSessionRecentsDataSource *recentsDataSource = [super addMatrixSession:mxSession];
if (recentsDataSource)
{
// Replace default event formatter
recentsDataSource.eventFormatter = [[EventFormatter alloc] initWithMatrixSession:mxSession];
recentsDataSource.eventFormatter.isForSubtitle = YES;
// And default room summary updater
mxSession.roomSummaryUpdateDelegate = recentsDataSource.eventFormatter;
}
// Initialise the public room directory data source
// Note that it is single matrix session only for now