Fix Room members: Add a specific section INVITED

#132
This commit is contained in:
giomfo
2016-04-08 17:26:42 +02:00
parent eb2b2ffe0c
commit eef696b65c
13 changed files with 417 additions and 364 deletions
@@ -22,10 +22,9 @@
/**
'RoomParticipantsViewController' instance is used to edit members of the room defined by the property 'mxRoom'.
When this property is nil, the view controller is able to handle a list of participants without room reference.
When this property is nil, the view controller empty.
*/
@interface RoomParticipantsViewController : MXKTableViewController <UISearchBarDelegate>
@interface RoomParticipantsViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate>
{
@protected
/**
@@ -37,12 +36,18 @@
Section indexes
*/
NSInteger searchResultSection;
NSInteger participantsSection;
NSInteger membersSection;
NSInteger invitedSection;
/**
Mutable list of participants
The current list of joined members.
*/
NSMutableArray *mutableParticipants;
NSMutableArray *actualMembers;
/**
The current list of invited members.
*/
NSMutableArray *invitedMembers;
/**
Store MXKContact instance by matrix user id
@@ -50,6 +55,11 @@
NSMutableDictionary *mxkContactsById;
}
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UIView *searchBarHeader;
@property (weak, nonatomic) IBOutlet UISearchBar *searchBarView;
@property (weak, nonatomic) IBOutlet UIView *searchBarHeaderBorder;
/**
A matrix room (nil by default).
*/
@@ -65,14 +75,5 @@
*/
@property (nonatomic) SegmentedViewController *segmentedViewController;
/**
Customize the UITableViewCell before rendering it.
@param contactCell the cell to customize.
@param indexPath path of the cell in the tableview.
*/
- (void)customizeContactCell:(ContactTableViewCell*)contactCell atIndexPath:(NSIndexPath *)indexPath;
@end