Public rooms search: Replace the PublicRoomsDirectoryDataSource.filter by an array of strings PublicRoomsDirectoryDataSource.searchPatternsList.

This commit is contained in:
manuroe
2015-12-21 15:29:57 +01:00
parent 056bf23f4d
commit 94fbcc076f
4 changed files with 25 additions and 21 deletions
@@ -39,13 +39,14 @@
/**
The filter being applied. Nil if there is no filter.
A 'OR' search is made on the strings of the array.
Setting a new value may trigger a request to the home server. So, the data source state
may change to MXKDataSourceStatePreparing.
*/
@property (nonatomic) NSString *filter;
@property (nonatomic) NSArray<NSString*> *searchPatternsList;
/**
Public rooms of the directory that match `filter`.
Public rooms of the directory that match `searchPatternsList`.
*/
@property (nonatomic, readonly) NSArray<MXPublicRoom*> *filteredRooms;