Prepare #904: Improve the people invite screens

- Make `HomePeopleSearchViewController` inherit of the new class `ContactsTableViewController` to handle room members.
This commit is contained in:
giomfo
2017-01-12 17:30:09 +01:00
parent 69182bdfd5
commit 11bb9703c3
9 changed files with 113 additions and 363 deletions
@@ -61,6 +61,8 @@
{
[super finalizeInit];
self.forceMatrixIdInDisplayName = YES;
_isAddParticipantSearchBarEditing = NO;
// Prepare room participants
@@ -594,7 +596,7 @@
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
[self searchWithPattern:searchText forceRefresh:NO];
[self searchWithPattern:searchText forceReset:NO];
}
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
@@ -640,7 +642,7 @@
self.isAddParticipantSearchBarEditing = NO;
// Reset filtering
[self searchWithPattern:nil forceRefresh:NO];
[self searchWithPattern:nil forceReset:NO];
// Leave search
[searchBar resignFirstResponder];