Feature/2897 restricted user

This commit is contained in:
Frank Rotermund
2022-03-22 14:37:58 +00:00
committed by Arnfried Griesert
parent 472dbded4e
commit 4b1ca0ff7f
16 changed files with 183 additions and 16 deletions
@@ -706,7 +706,11 @@
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
[contactsDataSource searchWithPattern:searchText forceReset:NO];
AccountRestrictionService *service = [[AccountRestrictionService alloc] initWithMxSession:self.mainSession];
if(![service isAddressListRestriction]) {
[contactsDataSource searchWithPattern:searchText forceReset:NO];
}
self.contactsAreFilteredWithSearch = searchText.length ? YES : NO;
}