mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
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:
@@ -139,9 +139,10 @@
|
||||
messagesSearchDataSource = [[RoomSearchDataSource alloc] initWithRoomDataSource:_roomDataSource];
|
||||
[messagesSearchViewController displaySearch:messagesSearchDataSource];
|
||||
|
||||
// Init the search for messages
|
||||
filesSearchDataSource = [[MXKSearchDataSource alloc] initWithRoomId:_roomDataSource.roomId andMatrixSession:mainSession];
|
||||
filesSearchDataSource.mediaFilter = MXMessagesSearchMediaFilterLimitedToAttachments;
|
||||
// Init the search for attachments
|
||||
filesSearchDataSource = [[MXKSearchDataSource alloc] initWithMatrixSession:mainSession];
|
||||
filesSearchDataSource.roomEventFilter.rooms = @[_roomDataSource.roomId];
|
||||
filesSearchDataSource.roomEventFilter.containsURL = YES;
|
||||
filesSearchDataSource.shouldShowRoomDisplayName = NO;
|
||||
[filesSearchDataSource registerCellDataClass:FilesSearchCellData.class forCellIdentifier:kMXKSearchCellDataIdentifier];
|
||||
[filesSearchViewController displaySearch:filesSearchDataSource];
|
||||
|
||||
Reference in New Issue
Block a user