Skip to content

Commit

Permalink
Made the image method in channel header loader open (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski authored Sep 4, 2024
1 parent 642662f commit da9a7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### 🔄 Changed
- Improved subtitle info in pinned messages view [#594](https://github.com/GetStream/stream-chat-swiftui/pull/594)
- The `image(for channel: ChatChannel)` in `ChannelHeaderLoader` is now open [#595](https://github.com/GetStream/stream-chat-swiftui/pull/595)

### 🐞 Fixed
- Typing users did not update reliably in the message list [#591](https://github.com/GetStream/stream-chat-swiftui/pull/591)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ open class ChannelHeaderLoader: ObservableObject {
/// If the image is not downloaded, placeholder is returned.
/// - Parameter channel: the provided channel.
/// - Returns: the available image.
public func image(for channel: ChatChannel) -> UIImage {
open func image(for channel: ChatChannel) -> UIImage {
if let image = loadedImages[channel.cid] {
return image
}
Expand Down

0 comments on commit da9a7db

Please sign in to comment.