From 05a817b37b9c1e7428dd633040634ba3ca9a9233 Mon Sep 17 00:00:00 2001 From: Stream Bot Date: Thu, 25 Jul 2024 10:15:21 +0200 Subject: [PATCH 1/2] Fix updating bottom reactions --- CHANGELOG.md | 3 ++- Sources/StreamChatSwiftUI/DefaultViewFactory.swift | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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( From 8907dfcbbf21e9446a70a484e67d8e2e669aca74 Mon Sep 17 00:00:00 2001 From: Stream Bot Date: Thu, 25 Jul 2024 10:45:33 +0200 Subject: [PATCH 2/2] Fixed a test --- StreamChatSwiftUITests/Tests/Utils/ViewFactory_Tests.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() {