Bug Fix - Use contains_url filter for navigating files and showing a file index for a room

#652

Support file search at room level.
This commit is contained in:
giomfo
2016-10-05 09:36:52 +02:00
parent 876d4292da
commit ec4c4b4bf5
12 changed files with 615 additions and 140 deletions
+1 -1
View File
@@ -283,7 +283,7 @@
// Init the search for messages
filesSearchDataSource = [[MXKSearchDataSource alloc] initWithMatrixSession:mainSession];
filesSearchDataSource.containsURL = YES;
filesSearchDataSource.mediaFilter = MXMessagesSearchMediaFilterLimitedToAttachments;
filesSearchDataSource.shouldShowRoomDisplayName = YES;
[filesSearchDataSource registerCellDataClass:FilesSearchCellData.class forCellIdentifier:kMXKSearchCellDataIdentifier];
[filesSearchViewController displaySearch:filesSearchDataSource];