Chat: Handle tap on icon in case of unsent messages notification.

This commit is contained in:
giomfo
2016-03-07 13:56:52 +01:00
parent 536f63cdaf
commit 41987f1575
5 changed files with 175 additions and 56 deletions
@@ -20,11 +20,12 @@
/**
`RoomExtraInfosInfoView` instance is a view used to display extra information
*/
@interface RoomActivitiesView : MXKRoomActivitiesView <UIGestureRecognizerDelegate>
@interface RoomActivitiesView : MXKRoomActivitiesView <UITextViewDelegate, UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet UIView *separatorView;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *messageLabel;
@property (weak, nonatomic) IBOutlet UITextView *messageTextView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *mainHeightConstraint;
@@ -32,10 +33,10 @@
Notify that some messages are not sent.
Replace the current notification if any.
@param labelText the notification message
@param onLabelTapGesture block called when user taps on label.
@param onResendLinkPressed block called when user selects the resend link.
@param onIconTapGesture block called when user taps on notification icon.
*/
- (void)displayUnsentMessagesNotification:(NSAttributedString*)labelText onLabelTapGesture:(void (^)(void))onLabelTapGesture;
- (void)displayUnsentMessagesNotificationWithResendLink:(void (^)(void))onResendLinkPressed andIconTapGesture:(void (^)(void))onIconTapGesture;
/**
Display network error.