Skip to content

Commit 1db476b

Browse files
Fix updating bottom reactions (#557)
1 parent f7e9217 commit 1db476b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44
# Upcoming
55

66
### 🐞 Fixed
7-
- Media and files attachments not showing in channel info view [#552](https://github.com/GetStream/stream-chat-swiftui/pull/552)
7+
- Media and files attachments not showing in channel info view [#554](https://github.com/GetStream/stream-chat-swiftui/pull/554)
8+
- Bottom reactions configuration not always updating reactions [#557](https://github.com/GetStream/stream-chat-swiftui/pull/557)
89

910
# [4.60.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.60.0)
1011
_July 19, 2024_

Sources/StreamChatSwiftUI/DefaultViewFactory.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ extension ViewFactory {
823823
onTap: onTap,
824824
onLongPress: onLongPress
825825
)
826+
.id(message.reactionScoresId)
826827
}
827828

828829
public func makeMessageReactionView(

StreamChatSwiftUITests/Tests/Utils/ViewFactory_Tests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,10 @@ class ViewFactory_Tests: StreamChatTestCase {
861861
onTap: {},
862862
onLongPress: {}
863863
)
864-
864+
let name = String(describing: type(of: view))
865+
865866
// Then
866-
XCTAssert(view is BottomReactionsView)
867+
XCTAssert(name.contains("BottomReactionsView"))
867868
}
868869

869870
func test_viewFactory_makeCustomAttachmentQuotedView() {

0 commit comments

Comments
 (0)