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/).
6
6
### ✅ Added
7
7
- Highlighting and tapping on user mentions
8
8
- Customization of the channel loading view
9
+ - Public init of InjectedChannelInfo
9
10
10
11
# [ 4.52.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.52.0 )
11
12
_ April 09, 2024_
Original file line number Diff line number Diff line change @@ -213,6 +213,20 @@ public struct InjectedChannelInfo {
213
213
public var timestamp : String ?
214
214
public var lastMessageAt : Date ?
215
215
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
+ }
216
230
}
217
231
218
232
extension ChatChannel {
You can’t perform that action at this time.
0 commit comments