Improve the people invite screens

#904

- Hide/show the non-matrix-enabled contacts from the local contacts section.
This commit is contained in:
giomfo
2017-01-26 23:36:26 +01:00
parent 46186cb2db
commit 1efe31a5d0
4 changed files with 258 additions and 9 deletions
@@ -40,7 +40,7 @@
'ContactsTableViewController' instance is used to display/filter a list of contacts.
See 'ContactsTableViewController-inherited' object for example of use.
*/
@interface ContactsTableViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource>
@interface ContactsTableViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource, UIGestureRecognizerDelegate>
{
@protected
// Section indexes
@@ -51,6 +51,9 @@
// The contact used to describe the current user.
MXKContact *userContact;
// Tell whether the non-matrix-enabled contacts must be hidden or not. NO by default.
BOOL hideNonMatrixEnabledContacts;
// Search results
NSString *currentSearchText;
NSMutableArray<MXKContact*> *filteredLocalContacts;