Skip to content

Commit 924a5b0

Browse files
Respect the dashboard value for quote replies (#957)
1 parent 3a5d479 commit 924a5b0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
88
- Add support for downloading file attachments [#952](https://github.com/GetStream/stream-chat-swiftui/pull/952)
99
### 🐞 Fixed
1010
- Fix updating back button tint with `ColorPalette.navigationBarTintColor` [#953](https://github.com/GetStream/stream-chat-swiftui/pull/953)
11+
- Fix swipe to reply enabled when quoting a message is disabled [#977](https://github.com/GetStream/stream-chat-swiftui/pull/957)
1112

1213
# [4.88.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.88.0)
1314
_September 10, 2025_

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ open class MessageViewModel: ObservableObject {
8686
}
8787

8888
open var isSwipeToQuoteReplyPossible: Bool {
89-
message.isInteractionEnabled && channel?.config.repliesEnabled == true
89+
message.isInteractionEnabled && channel?.config.quotesEnabled == true
9090
}
9191

9292
open var textContent: String {

StreamChatSwiftUITests/Tests/ChatChannel/MessageContainerView_Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ class MessageContainerView_Tests: StreamChatTestCase {
454454
isSentByCurrentUser: true
455455
)
456456

457-
let viewModel = MessageViewModel(message: message, channel: .mockDMChannel(config: .mock(repliesEnabled: false)))
457+
let viewModel = MessageViewModel(message: message, channel: .mockDMChannel(config: .mock(quotesEnabled: false)))
458458

459459
XCTAssertFalse(viewModel.isSwipeToQuoteReplyPossible)
460460
}

0 commit comments

Comments
 (0)