Room Participants: improve invitable contacts list

- list only the contacts who has the search pattern as prefix
This commit is contained in:
giomfo
2016-06-22 00:15:52 +02:00
parent 126c2449c8
commit 1aa3b9193b
3 changed files with 159 additions and 38 deletions
@@ -55,14 +55,14 @@
NSInteger invitableSection;
/**
The current list of joined members (Array of 'Contact' instances).
The current list of joined members.
*/
NSMutableArray *actualParticipants;
NSMutableArray<Contact*> *actualParticipants;
/**
The current list of invited members (Array of 'Contact' instances).
The current list of invited members.
*/
NSMutableArray *invitedParticipants;
NSMutableArray<Contact*> *invitedParticipants;
/**
The contact used to describe the current user (nil if the user is not a participant of the room).
@@ -100,5 +100,21 @@
*/
@property (nonatomic) id<RoomParticipantsViewControllerDelegate> delegate;
/**
Returns the `UINib` object initialized for a `RoomParticipantsViewController`.
@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 `RoomParticipantsViewController` object.
@discussion This is the designated initializer for programmatic instantiation.
@return An initialized `RoomParticipantsViewController` object if successful, `nil` otherwise.
*/
+ (instancetype)roomParticipantsViewController;
@end