Skip to content

Commit af3235d

Browse files
authored
MessageListConfig: make properties public (#134)
1 parent 42e563b commit af3235d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageListConfig.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ public enum DateIndicatorPlacement {
7474
/// Used to show and hide different helper views around the message.
7575
public struct MessageDisplayOptions {
7676

77-
let showAvatars: Bool
78-
let showMessageDate: Bool
79-
let showAuthorName: Bool
80-
let animateChanges: Bool
81-
let dateLabelSize: CGFloat
82-
let lastInGroupHeaderSize: CGFloat
83-
let minimumSwipeGestureDistance: CGFloat
84-
let currentUserMessageTransition: AnyTransition
85-
let otherUserMessageTransition: AnyTransition
86-
let shouldAnimateReactions: Bool
87-
var messageLinkDisplayResolver: (ChatMessage) -> [NSAttributedString.Key: Any]
77+
public let showAvatars: Bool
78+
public let showMessageDate: Bool
79+
public let showAuthorName: Bool
80+
public let animateChanges: Bool
81+
public let dateLabelSize: CGFloat
82+
public let lastInGroupHeaderSize: CGFloat
83+
public let minimumSwipeGestureDistance: CGFloat
84+
public let currentUserMessageTransition: AnyTransition
85+
public let otherUserMessageTransition: AnyTransition
86+
public let shouldAnimateReactions: Bool
87+
public let messageLinkDisplayResolver: (ChatMessage) -> [NSAttributedString.Key: Any]
8888

8989
public init(
9090
showAvatars: Bool = true,
@@ -104,7 +104,7 @@ public struct MessageDisplayOptions {
104104
self.showAuthorName = showAuthorName
105105
self.showMessageDate = showMessageDate
106106
self.animateChanges = animateChanges
107-
dateLabelSize = overlayDateLabelSize
107+
self.dateLabelSize = overlayDateLabelSize
108108
self.minimumSwipeGestureDistance = minimumSwipeGestureDistance
109109
self.currentUserMessageTransition = currentUserMessageTransition
110110
self.otherUserMessageTransition = otherUserMessageTransition

0 commit comments

Comments
 (0)