Construct formatted body from replied event

This commit is contained in:
aringenbach
2022-05-13 17:35:37 +02:00
parent 155847e4d5
commit 3a989a78fa
5 changed files with 166 additions and 21 deletions
@@ -240,6 +240,13 @@ typedef enum : NSUInteger {
*/
- (NSAttributedString*)renderHTMLString:(NSString*)htmlString forEvent:(MXEvent*)event withRoomState:(MXRoomState*)roomState isEditMode:(BOOL)isEditMode;
/**
Defines the replacement attributed string for a redacted message.
@return attributed string describing redacted message.
*/
- (NSAttributedString*)redactedMessageReplacementAttributedString;
/**
Same as [self renderString:forEvent:] but add a prefix.
The prefix will be rendered with 'prefixTextFont' and 'prefixTextColor'.