Rename roomsCount and moreThanRoomsCount to indicate they are for search results.

Redefine roomsCount as the number of fetched rooms in the data source.
This commit is contained in:
Doug
2021-07-08 12:16:05 +01:00
parent c1646e04c4
commit 105b1c5bd7
3 changed files with 23 additions and 13 deletions
@@ -62,11 +62,16 @@
@property (nonatomic, readonly) NSString *directoryServerDisplayname;
/**
The number of public rooms matching `searchPattern`.
It is accurate only if 'moreThanRoomsCount' is NO.
The number of public rooms that have been fetched so far.
*/
@property (nonatomic, readonly) NSUInteger roomsCount;
/**
The total number of public rooms matching `searchPattern`.
It is accurate only if 'moreThanRoomsCount' is NO.
*/
@property (nonatomic, readonly) NSUInteger searchResultsCount;
/**
In case of search with a lot of matching public rooms, we cannot return an accurate
value except by paginating the full list of rooms, which is not expected.
@@ -74,7 +79,7 @@
This flag indicates that we know that there is more matching rooms than we got
so far.
*/
@property (nonatomic, readonly) BOOL moreThanRoomsCount;
@property (nonatomic, readonly) BOOL searchResultsCountIsLimited;
/**
The maximum number of public rooms to retrieve during a pagination.