From da9a7dbab595f2eea3f7f6163088e20d2af29e26 Mon Sep 17 00:00:00 2001 From: Martin Mitrevski Date: Wed, 4 Sep 2024 11:15:30 +0200 Subject: [PATCH] Made the image method in channel header loader open (#595) --- CHANGELOG.md | 1 + .../StreamChatSwiftUI/ChatChannelList/ChannelHeaderLoader.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c366b463..2defaf97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Sources/StreamChatSwiftUI/ChatChannelList/ChannelHeaderLoader.swift b/Sources/StreamChatSwiftUI/ChatChannelList/ChannelHeaderLoader.swift index 4a02a5ff..b0cf7fdc 100644 --- a/Sources/StreamChatSwiftUI/ChatChannelList/ChannelHeaderLoader.swift +++ b/Sources/StreamChatSwiftUI/ChatChannelList/ChannelHeaderLoader.swift @@ -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 }