User directory: Display "> nn" when the search results is limited.

Reduce the requested number of users from 100 to 50 (but the hs still returns **51** users...)
This commit is contained in:
manuroe
2017-07-28 15:16:25 +02:00
parent 49542916f5
commit afeeaadae7
+3 -2
View File
@@ -198,7 +198,7 @@
hsUserDirectoryOperation = nil;
}
hsUserDirectoryOperation = [self.mxSession.matrixRestClient searchUsers:searchText limit:100 success:^(MXUserSearchResponse *userSearchResponse) {
hsUserDirectoryOperation = [self.mxSession.matrixRestClient searchUsers:searchText limit:50 success:^(MXUserSearchResponse *userSearchResponse) {
filteredMatrixContacts = [NSMutableArray arrayWithCapacity:userSearchResponse.results.count];
@@ -729,7 +729,8 @@
if (count)
{
NSString *roomCount = [NSString stringWithFormat:@" %tu", count];
NSString *roomCountFormat = (_userDirectoryState == ContactsDataSourceUserDirectoryStateLoadedButLimited) ? @" > %tu" : @" %tu";
NSString *roomCount = [NSString stringWithFormat:roomCountFormat, count];
NSMutableAttributedString *mutableSectionTitle = [[NSMutableAttributedString alloc] initWithString:title
attributes:@{NSForegroundColorAttributeName : kRiotTextColorBlack,