File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Sources/StreamChatSwiftUI/ChatChannelList Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66### ✅ Added
77- Highlighting and tapping on user mentions
88- Customization of the channel loading view
9+ - Public init of InjectedChannelInfo
910
1011# [ 4.52.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.52.0 )
1112_ April 09, 2024_
Original file line number Diff line number Diff line change @@ -213,6 +213,20 @@ public struct InjectedChannelInfo {
213213 public var timestamp : String ?
214214 public var lastMessageAt : Date ?
215215 public var latestMessages : [ ChatMessage ] ?
216+
217+ public init (
218+ subtitle: String ? = nil ,
219+ unreadCount: Int ,
220+ timestamp: String ? = nil ,
221+ lastMessageAt: Date ? = nil ,
222+ latestMessages: [ ChatMessage ] ? = nil
223+ ) {
224+ self . subtitle = subtitle
225+ self . unreadCount = unreadCount
226+ self . timestamp = timestamp
227+ self . lastMessageAt = lastMessageAt
228+ self . latestMessages = latestMessages
229+ }
216230}
217231
218232extension ChatChannel {
You can’t perform that action at this time.
0 commit comments