mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Public rooms search: Add an expiration time (10s) on public rooms list data to avoid to make request each time the user enter a new letter
This commit is contained in:
@@ -32,17 +32,21 @@
|
||||
*/
|
||||
@interface PublicRoomsDirectoryDataSource : MXKDataSource <UITableViewDataSource, MXKDataSourceDelegate>
|
||||
|
||||
/**
|
||||
All public rooms of the directory.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSArray<MXPublicRoom*> *rooms;
|
||||
|
||||
/**
|
||||
The filter being applied. Nil if there is no filter.
|
||||
Setting a new value may trigger a request to the home server. So, the data source state
|
||||
may change to MXKDataSourceStatePreparing.
|
||||
*/
|
||||
@property (nonatomic) NSString *searchPattern;
|
||||
@property (nonatomic) NSString *filter;
|
||||
|
||||
/**
|
||||
The public room of the directory.
|
||||
The returned array is filtered according to `searchPattern`.
|
||||
Public rooms of the directory that match `filter`.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSArray<MXPublicRoom*> *rooms;
|
||||
@property (nonatomic, readonly) NSArray<MXPublicRoom*> *filteredRooms;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user