mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
55 lines
1.3 KiB
Objective-C
55 lines
1.3 KiB
Objective-C
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2015 OpenMarket Ltd
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
#import "MatrixKit.h"
|
|
|
|
/**
|
|
Link string used in attributed strings to mark a keys re-request action.
|
|
*/
|
|
FOUNDATION_EXPORT NSString *const EventFormatterOnReRequestKeysLinkAction;
|
|
|
|
/**
|
|
Parameters separator in the link string.
|
|
*/
|
|
FOUNDATION_EXPORT NSString *const EventFormatterLinkActionSeparator;
|
|
|
|
/**
|
|
Link string used in attributed strings to mark an edited event action.
|
|
*/
|
|
FOUNDATION_EXPORT NSString *const EventFormatterEditedEventLinkAction;
|
|
|
|
/**
|
|
`EventFormatter` class inherits from `MXKEventFormatter` to define Vector formatting
|
|
*/
|
|
@interface EventFormatter : MXKEventFormatter
|
|
|
|
/**
|
|
Add a "(edited)" mention to edited message.
|
|
Default is YES.
|
|
*/
|
|
@property (nonatomic) BOOL showEditionMention;
|
|
|
|
/**
|
|
Text color used to display message edited mention.
|
|
Default is `textSecondaryColor`.
|
|
*/
|
|
@property (nonatomic) UIColor *editionMentionTextColor;
|
|
|
|
/**
|
|
Text font used to display message edited mention.
|
|
Default is system font 12.
|
|
*/
|
|
@property (nonatomic) UIFont *editionMentionTextFont;
|
|
|
|
/**
|
|
String attributes for event timestamp displayed in chat history.
|
|
*/
|
|
- (NSDictionary*)stringAttributesForEventTimestamp;
|
|
|
|
@end
|