Option to autocomplete nicknames from their member info page

https://github.com/vector-im/vector-ios/issues/317
This commit is contained in:
giomfo
2016-05-26 18:30:41 +02:00
parent cc6dfad638
commit e3d10cba2e
8 changed files with 110 additions and 18 deletions
@@ -21,12 +21,30 @@
#import "SegmentedViewController.h"
@class Contact;
@class RoomParticipantsViewController;
/**
`RoomParticipantsViewController` delegate.
*/
@protocol RoomParticipantsViewControllerDelegate <NSObject>
/**
Tells the delegate that the user wants to mention a room member.
@discussion the `RoomParticipantsViewController` instance is withdrawn automatically.
@param roomParticipantsViewController the `RoomParticipantsViewController` instance.
@param member the room member to mention.
*/
- (void)roomParticipantsViewController:(RoomParticipantsViewController *)roomParticipantsViewController mention:(MXRoomMember*)member;
@end
/**
'RoomParticipantsViewController' instance is used to edit members of the room defined by the property 'mxRoom'.
When this property is nil, the view controller is empty.
*/
@interface RoomParticipantsViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate>
@interface RoomParticipantsViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, MXKRoomMemberDetailsViewControllerDelegate>
{
@protected
/**
@@ -72,5 +90,15 @@
*/
@property (nonatomic) SegmentedViewController *segmentedViewController;
/**
Enable mention option in member details view. NO by default
*/
@property (nonatomic) BOOL enableMention;
/**
The delegate for the view controller.
*/
@property (nonatomic) id<RoomParticipantsViewControllerDelegate> delegate;
@end