File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Sources/StreamChatSwiftUI Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -195,21 +195,21 @@ public struct InjectedChannelInfo {
195
195
196
196
extension ChatChannel {
197
197
198
- var lastMessageText : String ? {
198
+ public var lastMessageText : String ? {
199
199
if let latestMessage = latestMessages. first {
200
200
return " \( latestMessage. author. name ?? latestMessage. author. id) : \( latestMessage. textContent ?? latestMessage. text) "
201
201
} else {
202
202
return nil
203
203
}
204
204
}
205
205
206
- var shouldShowTypingIndicator : Bool {
206
+ public var shouldShowTypingIndicator : Bool {
207
207
!currentlyTypingUsersFiltered(
208
208
currentUserId: InjectedValues [ \. chatClient] . currentUserId
209
209
) . isEmpty && config. typingEventsEnabled
210
210
}
211
211
212
- var subtitleText : String {
212
+ public var subtitleText : String {
213
213
if isMuted {
214
214
return L10n . Channel. Item. muted
215
215
} else if shouldShowTypingIndicator {
@@ -221,7 +221,7 @@ extension ChatChannel {
221
221
}
222
222
}
223
223
224
- var timestampText : String {
224
+ public var timestampText : String {
225
225
if let lastMessageAt = lastMessageAt {
226
226
return InjectedValues [ \. utils] . dateFormatter. string ( from: lastMessageAt)
227
227
} else {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ extension View {
81
81
}
82
82
83
83
extension Image {
84
- func customizable( ) -> some View {
84
+ public func customizable( ) -> some View {
85
85
renderingMode ( . template)
86
86
. resizable ( )
87
87
. scaledToFit ( )
You can’t perform that action at this time.
0 commit comments