diff --git a/CHANGELOG.md b/CHANGELOG.md index 0042dafa..61880bda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). # Upcoming ### 🐞 Fixed -- Media and files attachments not showing in channel info view [#552](https://github.com/GetStream/stream-chat-swiftui/pull/552) +- Media and files attachments not showing in channel info view [#554](https://github.com/GetStream/stream-chat-swiftui/pull/554) +- Bottom reactions configuration not always updating reactions [#557](https://github.com/GetStream/stream-chat-swiftui/pull/557) # [4.60.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.60.0) _July 19, 2024_ diff --git a/Sources/StreamChatSwiftUI/DefaultViewFactory.swift b/Sources/StreamChatSwiftUI/DefaultViewFactory.swift index 85a90c42..a7ef8a80 100644 --- a/Sources/StreamChatSwiftUI/DefaultViewFactory.swift +++ b/Sources/StreamChatSwiftUI/DefaultViewFactory.swift @@ -823,6 +823,7 @@ extension ViewFactory { onTap: onTap, onLongPress: onLongPress ) + .id(message.reactionScoresId) } public func makeMessageReactionView( diff --git a/StreamChatSwiftUITests/Tests/Utils/ViewFactory_Tests.swift b/StreamChatSwiftUITests/Tests/Utils/ViewFactory_Tests.swift index 7fa5705f..5f349380 100644 --- a/StreamChatSwiftUITests/Tests/Utils/ViewFactory_Tests.swift +++ b/StreamChatSwiftUITests/Tests/Utils/ViewFactory_Tests.swift @@ -861,9 +861,10 @@ class ViewFactory_Tests: StreamChatTestCase { onTap: {}, onLongPress: {} ) - + let name = String(describing: type(of: view)) + // Then - XCTAssert(view is BottomReactionsView) + XCTAssert(name.contains("BottomReactionsView")) } func test_viewFactory_makeCustomAttachmentQuotedView() {