diff --git a/CHANGELOG.md b/CHANGELOG.md index dc075d45714..bbc5884b20a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). # Upcoming -### 🔄 Changed +## StreamChatUI +### ✅ Added +- Open `shouldMarkThreadRead` and `shouldMarkChannelRead` [#3468](https://github.com/GetStream/stream-chat-swift/pull/3468) # [4.65.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.65.0) _October 18, 2024_ diff --git a/Sources/StreamChatUI/ChatChannel/ChatChannelVC.swift b/Sources/StreamChatUI/ChatChannel/ChatChannelVC.swift index bd9ec9228d3..c2e937fca31 100644 --- a/Sources/StreamChatUI/ChatChannel/ChatChannelVC.swift +++ b/Sources/StreamChatUI/ChatChannel/ChatChannelVC.swift @@ -81,7 +81,7 @@ open class ChatChannelVC: _ViewController, } /// A boolean value indicating whether it should mark the channel read. - public var shouldMarkChannelRead: Bool { + open var shouldMarkChannelRead: Bool { guard isViewVisible, case .remoteDataFetched = channelController.state else { return false } diff --git a/Sources/StreamChatUI/ChatThread/ChatThreadVC.swift b/Sources/StreamChatUI/ChatThread/ChatThreadVC.swift index e71ae3e3272..fe6fe3c2513 100644 --- a/Sources/StreamChatUI/ChatThread/ChatThreadVC.swift +++ b/Sources/StreamChatUI/ChatThread/ChatThreadVC.swift @@ -94,7 +94,7 @@ open class ChatThreadVC: _ViewController, } /// A boolean value indicating whether it should mark the thread read. - public var shouldMarkThreadRead: Bool { + open var shouldMarkThreadRead: Bool { guard isViewVisible, case .remoteDataFetched = messageController.state else { return false }