File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
Sources/StreamChatSwiftUI/ChatChannel Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,9 @@ struct MessageContainerView<Factory: ViewFactory>: View {
177
177
}
178
178
179
179
private var reactionsShown : Bool {
180
- !message. reactionScores. isEmpty && !message. isDeleted
180
+ !message. reactionScores. isEmpty
181
+ && !message. isDeleted
182
+ && channel. config. reactionsEnabled
181
183
}
182
184
183
185
private func dragChanged( to value: CGFloat ) {
Original file line number Diff line number Diff line change @@ -74,18 +74,20 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
74
74
x: messageDisplayInfo. frame. origin. x
75
75
)
76
76
. overlay (
77
- ReactionsOverlayContainer (
78
- message: viewModel. message,
79
- contentRect: messageDisplayInfo. frame,
80
- onReactionTap: { reaction in
81
- viewModel. reactionTapped ( reaction)
82
- onBackgroundTap ( )
83
- }
84
- )
85
- . offset (
86
- x: messageDisplayInfo. frame. origin. x,
87
- y: - 24
88
- )
77
+ channel. config. reactionsEnabled ?
78
+ ReactionsOverlayContainer (
79
+ message: viewModel. message,
80
+ contentRect: messageDisplayInfo. frame,
81
+ onReactionTap: { reaction in
82
+ viewModel. reactionTapped ( reaction)
83
+ onBackgroundTap ( )
84
+ }
85
+ )
86
+ . offset (
87
+ x: messageDisplayInfo. frame. origin. x,
88
+ y: - 24
89
+ )
90
+ : nil
89
91
)
90
92
. frame (
91
93
width: messageDisplayInfo. frame. width,
You can’t perform that action at this time.
0 commit comments