diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift index a8bf51b1..ea39a48d 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift @@ -116,19 +116,16 @@ public struct MessageContainerView: View { }) } ) - .gesture( - LongPressGesture() - .onEnded { _ in - if !message.isDeleted { - handleGestureForMessage(showsMessageActions: true) - } - } - ) .onTapGesture(count: 2) { if messageListConfig.doubleTapOverlayEnabled { handleGestureForMessage(showsMessageActions: true) } } + .onLongPressGesture(perform: { + if !message.isDeleted { + handleGestureForMessage(showsMessageActions: true) + } + }) .offset(x: min(self.offsetX, maximumHorizontalSwipeDisplacement)) .simultaneousGesture( DragGesture(