Skip to content

Commit cd1735e

Browse files
Reactions popup disabled if channel is frozen
1 parent 21727cc commit cd1735e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

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

66
### 🔄 Changed
7+
- Reactions popup disabled if channel is frozen
78

89
# [4.35.1](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.35.1)
910
_August 10, 2023_

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
108108
)
109109
.opacity((
110110
utils.messageListConfig.messagePopoverEnabled && messageDisplayInfo != nil && !viewModel
111-
.reactionsShown
111+
.reactionsShown && viewModel.channel?.isFrozen == false
112112
) ? 0 : 1)
113113

114114
NavigationLink(

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelViewModel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ open class ChatChannelViewModel: ObservableObject, MessagesDataSource {
5959
@Published public var currentSnapshot: UIImage? {
6060
didSet {
6161
withAnimation {
62-
reactionsShown = currentSnapshot != nil && utils.messageListConfig.messagePopoverEnabled
62+
reactionsShown = currentSnapshot != nil
63+
&& utils.messageListConfig.messagePopoverEnabled
64+
&& channel?.isFrozen == false
6365
}
6466
}
6567
}

0 commit comments

Comments
 (0)