Enhancement - Improve the people invite screens.

#904

- MXKContactManager: List the local contacts with methods (instead of handling only the emails).
- ContactTableViewCell: Highlight the Matrix-enabled contacts in local contacts section.
This commit is contained in:
giomfo
2017-01-06 15:09:18 +01:00
parent 1fe0d49aec
commit d6fcfc8bef
12 changed files with 309 additions and 191 deletions
+14 -6
View File
@@ -14,21 +14,24 @@
limitations under the License.
*/
#import <MatrixSDK/MatrixSDK.h>
#import "MXKTableViewCell.h"
#import "MXKCellRendering.h"
#import "MXKImageView.h"
#import <MatrixKit/MatrixKit.h>
/**
'ContactTableCell' extends MXKTableViewCell.
*/
@interface ContactTableViewCell : MXKTableViewCell <MXKCellRendering>
{
@protected
/**
The current displayed contact.
*/
MXKContact *contact;
}
@property (nonatomic) IBOutlet MXKImageView *thumbnailView;
@property (nonatomic) IBOutlet UIImageView *thumbnailBadgeView;
@property (nonatomic) IBOutlet UILabel *contactDisplayNameLabel;
@property (nonatomic) IBOutlet UILabel *lastPresenceLabel;
@property (nonatomic) IBOutlet UILabel *contactInformationLabel;
@property (nonatomic) IBOutlet UIView *customAccessoryView;
@property (nonatomic) BOOL showCustomAccessoryView;
@@ -36,6 +39,11 @@
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *customAccessViewWidthConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *customAccessoryViewLeadingConstraint;
/**
Tell whether the matrix id should be added in the contact display name (NO by default)
*/
@property (nonatomic) BOOL showMatrixIdInDisplayName;
// The room where the contact is.
// It is used to display the member information (like invitation)
// This property is OPTIONAL.