@@ -8,8 +8,6 @@ import StreamChat
8
8
/// Class providing implementations of several utilities used in the SDK.
9
9
/// The default implementations can be replaced in the init method, or directly via the variables.
10
10
public class Utils {
11
- // TODO: Make it public in future versions.
12
- internal var messagePreviewFormatter = MessagePreviewFormatter ( )
13
11
var markdownFormatter = MarkdownFormatter ( )
14
12
15
13
public var dateFormatter : DateFormatter
@@ -29,6 +27,7 @@ public class Utils {
29
27
public var channelAvatarsMerger : ChannelAvatarsMerging
30
28
public var messageTypeResolver : MessageTypeResolving
31
29
public var messageActionsResolver : MessageActionsResolving
30
+ public var messagePreviewFormatter : MessagePreviewFormatting
32
31
public var commandsConfig : CommandsConfig
33
32
public var channelListConfig : ChannelListConfig
34
33
public var messageListConfig : MessageListConfig
@@ -87,6 +86,7 @@ public class Utils {
87
86
channelAvatarsMerger: ChannelAvatarsMerging = ChannelAvatarsMerger ( ) ,
88
87
messageTypeResolver: MessageTypeResolving = MessageTypeResolver ( ) ,
89
88
messageActionResolver: MessageActionsResolving = MessageActionsResolver ( ) ,
89
+ messagePreviewFormatter: MessagePreviewFormatting = MessagePreviewFormatter ( ) ,
90
90
commandsConfig: CommandsConfig = DefaultCommandsConfig ( ) ,
91
91
channelListConfig: ChannelListConfig = ChannelListConfig ( ) ,
92
92
messageListConfig: MessageListConfig = MessageListConfig ( ) ,
@@ -115,6 +115,7 @@ public class Utils {
115
115
self . channelAvatarsMerger = channelAvatarsMerger
116
116
self . messageTypeResolver = messageTypeResolver
117
117
messageActionsResolver = messageActionResolver
118
+ self . messagePreviewFormatter = messagePreviewFormatter
118
119
self . commandsConfig = commandsConfig
119
120
self . channelListConfig = channelListConfig
120
121
self . messageListConfig = messageListConfig
0 commit comments