mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
3779: Apply PR comments
This commit is contained in:
@@ -452,18 +452,16 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
|
||||
While sending, a fake event will be echoed in the messages list.
|
||||
Once complete, this local echo will be replaced by the event saved by the homeserver.
|
||||
|
||||
@param eventIdToReply the id of event to reply.
|
||||
@param eventToReply the 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;
|
||||
- (void)sendReplyToEvent:(MXEvent*)eventToReply
|
||||
withTextMessage:(NSString *)text
|
||||
success:(void (^)(NSString *))success
|
||||
failure:(void (^)(NSError *))failure;
|
||||
|
||||
/**
|
||||
Indicates if replying to the provided event is supported.
|
||||
@@ -797,18 +795,16 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
|
||||
/**
|
||||
Replace a text in an event.
|
||||
|
||||
@param eventId The eventId of event to replace.
|
||||
@param event The 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;
|
||||
- (void)replaceTextMessageForEvent:(MXEvent *)event
|
||||
withTextMessage:(NSString *)text
|
||||
success:(void (^)(NSString *eventId))success
|
||||
failure:(void (^)(NSError *error))failure;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1870,14 +1870,11 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
|
||||
}
|
||||
}
|
||||
|
||||
- (void)sendReplyToEventWithId:(NSString*)eventIdToReply
|
||||
withTextMessage:(NSString *)text
|
||||
actualRoomDataSource:(MXKRoomDataSource *)actualData
|
||||
success:(void (^)(NSString *))success
|
||||
failure:(void (^)(NSError *))failure
|
||||
- (void)sendReplyToEvent:(MXEvent*)eventToReply
|
||||
withTextMessage:(NSString *)text
|
||||
success:(void (^)(NSString *))success
|
||||
failure:(void (^)(NSError *))failure
|
||||
{
|
||||
MXEvent *eventToReply = [actualData eventWithEventId:eventIdToReply];
|
||||
|
||||
__block MXEvent *localEchoEvent = nil;
|
||||
|
||||
NSString *sanitizedText = [self sanitizedMessageText:text];
|
||||
@@ -4285,14 +4282,11 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
|
||||
return hasChanged;
|
||||
}
|
||||
|
||||
- (void)replaceTextMessageForEventWithId:(NSString*)eventId
|
||||
withTextMessage:(NSString *)text
|
||||
actualRoomDataSource:(MXKRoomDataSource *)actualData
|
||||
success:(void (^)(NSString *))success
|
||||
failure:(void (^)(NSError *))failure
|
||||
- (void)replaceTextMessageForEvent:(MXEvent*)event
|
||||
withTextMessage:(NSString *)text
|
||||
success:(void (^)(NSString *))success
|
||||
failure:(void (^)(NSError *))failure
|
||||
{
|
||||
MXEvent *event = [actualData eventWithEventId:eventId];
|
||||
|
||||
NSString *sanitizedText = [self sanitizedMessageText:text];
|
||||
NSString *formattedText = [self htmlMessageFromSanitizedText:sanitizedText];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user