mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
Chat screen: Display network status, and handle unsent messages.
This commit is contained in:
@@ -20,16 +20,42 @@
|
||||
/**
|
||||
`RoomExtraInfosInfoView` instance is a view used to display extra information
|
||||
*/
|
||||
@interface RoomActivitiesView : MXKRoomActivitiesView
|
||||
@interface RoomActivitiesView : MXKRoomActivitiesView <UIGestureRecognizerDelegate>
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIView *separatorView;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *typingImageView;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *messageLabel;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *mainHeightConstraint;
|
||||
|
||||
/**
|
||||
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.
|
||||
*/
|
||||
- (void)displayUnsentMessagesNotification:(NSAttributedString*)labelText onLabelTapGesture:(void (^)(void))onLabelTapGesture;
|
||||
|
||||
/**
|
||||
Display network error.
|
||||
Replace the current notification if any.
|
||||
|
||||
@param labelText the notification message
|
||||
*/
|
||||
- (void)displayNetworkErrorNotification:(NSString*)labelText;
|
||||
|
||||
/**
|
||||
Display a typing notification.
|
||||
Replace the current notification if any.
|
||||
|
||||
@param labelText the current typing message.
|
||||
*/
|
||||
- (void)displayTypingNotification:(NSString*)labelText;
|
||||
|
||||
/**
|
||||
Remove any displayed information.
|
||||
*/
|
||||
- (void)reset;
|
||||
|
||||
// update the displayed typing message.
|
||||
// nil message hides the typing icon too.
|
||||
- (void)updateTypingMessage:(NSString*)message;
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user