Skip to content

Commit

Permalink
Improve the people invite screens
Browse files Browse the repository at this point in the history
#904

- Hide/show the non-matrix-enabled contacts from the local contacts section.
  • Loading branch information
giomfo committed Jan 26, 2017
1 parent d9b9410 commit a2e032d
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 9 deletions.
1 change: 1 addition & 0 deletions Vector/Assets/en.lproj/Vector.strings
Expand Up @@ -125,6 +125,7 @@
// Contacts
"contacts_address_book_section" = "LOCAL CONTACTS";
"contacts_matrix_users_section" = "KNOWN CONTACTS";
"contacts_address_book_matrix_users_toggle" = "Matrix users only";

// Chat participants
"room_participants_title" = "Participants";
Expand Down
5 changes: 4 additions & 1 deletion Vector/ViewController/ContactsTableViewController.h
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit a2e032d

Please sign in to comment.