Skip to content

Commit

Permalink
Reactions popup disabled if channel is frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Aug 14, 2023
1 parent 21727cc commit cd1735e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
# Upcoming

### 🔄 Changed
- Reactions popup disabled if channel is frozen

# [4.35.1](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.35.1)
_August 10, 2023_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
)
.opacity((
utils.messageListConfig.messagePopoverEnabled && messageDisplayInfo != nil && !viewModel
.reactionsShown
.reactionsShown && viewModel.channel?.isFrozen == false
) ? 0 : 1)

NavigationLink(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ open class ChatChannelViewModel: ObservableObject, MessagesDataSource {
@Published public var currentSnapshot: UIImage? {
didSet {
withAnimation {
reactionsShown = currentSnapshot != nil && utils.messageListConfig.messagePopoverEnabled
reactionsShown = currentSnapshot != nil
&& utils.messageListConfig.messagePopoverEnabled
&& channel?.isFrozen == false
}
}
}
Expand Down

0 comments on commit cd1735e

Please sign in to comment.