Feature - "Add contact" button should be added on Room Member list

#905

+ Improve the people invite screens #904.
This commit is contained in:
giomfo
2017-01-13 02:24:50 +01:00
parent 11bb9703c3
commit d0dcf2eaa9
11 changed files with 335 additions and 438 deletions
@@ -51,20 +51,31 @@
// The contact used to describe the current user.
MXKContact *userContact;
// The dictionary of the ignored local contacts, the keys are their email. Empty by default.
NSMutableDictionary<NSString*, MXKContact*> *ignoredContactsByEmail;
//The dictionary of the ignored matrix contacts, the keys are their matrix identifier. Empty by default.
NSMutableDictionary<NSString*, MXKContact*> *ignoredContactsByMatrixId;
// Search results
NSString *currentSearchText;
NSMutableArray<MXKContact*> *filteredLocalContacts;
NSMutableArray<MXKContact*> *filteredMatrixContacts;
MXKAlert *currentAlert;
}
/**
Returns the `UINib` object initialized for a `ContactsTableViewController`.
@return The initialized `UINib` object or `nil` if there were errors during initialization
or the nib file could not be located.
*/
+ (UINib *)nib;
/**
Creates and returns a new `ContactsTableViewController` object.
@discussion This is the designated initializer for programmatic instantiation.
@return An initialized `ContactsTableViewController` object if successful, `nil` otherwise.
*/
+ (instancetype)contactsTableViewController;
/**
The contacts table view.
*/
@property (weak, nonatomic) IBOutlet UITableView *tableView;
/**
@@ -73,6 +84,16 @@
*/
@property (nonatomic) BOOL forceMatrixIdInDisplayName;
/**
The dictionary of the ignored local contacts, the keys are their email. Empty by default.
*/
@property (nonatomic) NSMutableDictionary<NSString*, MXKContact*> *ignoredContactsByEmail;
/**
The dictionary of the ignored matrix contacts, the keys are their matrix identifier. Empty by default.
*/
@property (nonatomic) NSMutableDictionary<NSString*, MXKContact*> *ignoredContactsByMatrixId;
/**
Filter the contacts list, by keeping only the contacts who have the search pattern
as prefix in their display name, their matrix identifiers and/or their contact methods (emails, phones).