RoomInputToolbarView: Turn the boolean replyToEnabled into an enum: sendMode

because message editing (#2404) is coming
This commit is contained in:
manuroe
2019-04-30 17:07:43 +02:00
parent 8025485758
commit 16687b865f
3 changed files with 66 additions and 21 deletions

View File

@@ -18,6 +18,16 @@
#import "MediaPickerViewController.h"
/**
Destination of the message in the composer
*/
typedef enum : NSUInteger
{
RoomInputToolbarViewSendModeSend,
RoomInputToolbarViewSendModeReply,
} RoomInputToolbarViewSendMode;
@protocol RoomInputToolbarViewDelegate <MXKRoomInputToolbarViewDelegate>
/**
@@ -70,9 +80,9 @@
@property (nonatomic) BOOL isEncryptionEnabled;
/**
Tell whether the input text will be a reply to a message.
Destination of the message in the composer.
*/
@property (nonatomic, getter=isReplyToEnabled) BOOL replyToEnabled;
@property (nonatomic) RoomInputToolbarViewSendMode sendMode;
/**
Tell whether a call is active.