3779: show the input tool bar on timeline not live

This commit is contained in:
MaximeE
2022-02-23 11:03:22 +01:00
parent d39b42dbc1
commit c980315d83
5 changed files with 40 additions and 10 deletions
@@ -454,12 +454,14 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
@param eventIdToReply the id of event to reply.
@param text the text to send.
@param actualData the data source actually. It's use to retrieve event to reply.
@param success A block object called when the operation succeeds. It returns
the event id of the event generated on the homeserver
@param failure A block object called when the operation fails.
*/
- (void)sendReplyToEventWithId:(NSString*)eventIdToReply
withTextMessage:(NSString *)text
actualRoomDataSource:(MXKRoomDataSource *)actualData
success:(void (^)(NSString *))success
failure:(void (^)(NSError *))failure;
@@ -797,12 +799,14 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
@param eventId The eventId of event to replace.
@param text The new message text.
@param actualData the data source actually. It's use to retrieve event to replace.
@param success A block object called when the operation succeeds. It returns
the event id of the event generated on the homeserver.
@param failure A block object called when the operation fails.
*/
- (void)replaceTextMessageForEventWithId:(NSString *)eventId
withTextMessage:(NSString *)text
actualRoomDataSource:(MXKRoomDataSource *)actualData
success:(void (^)(NSString *eventId))success
failure:(void (^)(NSError *error))failure;
@@ -1872,10 +1872,11 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
- (void)sendReplyToEventWithId:(NSString*)eventIdToReply
withTextMessage:(NSString *)text
actualRoomDataSource:(MXKRoomDataSource *)actualData
success:(void (^)(NSString *))success
failure:(void (^)(NSError *))failure
{
MXEvent *eventToReply = [self eventWithEventId:eventIdToReply];
MXEvent *eventToReply = [actualData eventWithEventId:eventIdToReply];
__block MXEvent *localEchoEvent = nil;
@@ -4285,11 +4286,12 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
}
- (void)replaceTextMessageForEventWithId:(NSString*)eventId
withTextMessage:(NSString *)text
withTextMessage:(NSString *)text
actualRoomDataSource:(MXKRoomDataSource *)actualData
success:(void (^)(NSString *))success
failure:(void (^)(NSError *))failure
{
MXEvent *event = [self eventWithEventId:eventId];
MXEvent *event = [actualData eventWithEventId:eventId];
NSString *sanitizedText = [self sanitizedMessageText:text];
NSString *formattedText = [self htmlMessageFromSanitizedText:sanitizedText];