diff --git a/src/components/chats/ChatItem/ChatItem.tsx b/src/components/chats/ChatItem/ChatItem.tsx index 9926ebc21..6ae666ac5 100644 --- a/src/components/chats/ChatItem/ChatItem.tsx +++ b/src/components/chats/ChatItem/ChatItem.tsx @@ -101,6 +101,7 @@ export default function ChatItem({ config={config} superLikeProps={props} messageBubbleId={messageBubbleId} + disableSuperLike={disableSuperLike} > {extensions && extensions.length > 0 ? ( { const containerRef = useRef(null) const { toggleDisplay, referenceProps } = config || {} @@ -240,7 +245,7 @@ const ChatItemMenuWrapper = ({ e.preventDefault() e.stopPropagation() - if (!isDisabled && !hasILiked) { + if (!isDisabled && !disableSuperLike && !hasILiked) { haptic?.result?.impactOccurred('medium') handleClick() animateHeart(e.clientX, e.clientY) diff --git a/src/components/chats/ChatList/ChatItemWithMenu.tsx b/src/components/chats/ChatList/ChatItemWithMenu.tsx index 8fb411e1c..fe8cf5c56 100644 --- a/src/components/chats/ChatList/ChatItemWithMenu.tsx +++ b/src/components/chats/ChatList/ChatItemWithMenu.tsx @@ -52,6 +52,7 @@ function InnerChatItemWithMenu({ message={message} showBlockedMessage={showBlockedMessage} messageBubbleId={getMessageElementId(message.id)} + disableSuperLike={disableSuperLike} enableProfileModal={enableProfileModal} scrollToMessage={scrollToMessage} showApproveButton={showApproveButton}