diff --git a/package.json b/package.json index a9951569b..871a4480e 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,7 @@ "@playwright/test": "^1.42.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", - "@stream-io/stream-chat-css": "^5.15.0", + "@stream-io/stream-chat-css": "^5.16.0", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", diff --git a/src/components/Message/MessageRepliesCountButton.tsx b/src/components/Message/MessageRepliesCountButton.tsx index 68cf8c571..d2e54f169 100644 --- a/src/components/Message/MessageRepliesCountButton.tsx +++ b/src/components/Message/MessageRepliesCountButton.tsx @@ -1,6 +1,7 @@ import type { MouseEventHandler } from 'react'; import React from 'react'; import { useTranslationContext } from '../../context/TranslationContext'; +import { useChannelStateContext } from '../../context'; export type MessageRepliesCountButtonProps = { /* If supplied, adds custom text to the end of a multiple replies message */ @@ -15,6 +16,7 @@ export type MessageRepliesCountButtonProps = { const UnMemoizedMessageRepliesCountButton = (props: MessageRepliesCountButtonProps) => { const { labelPlural, labelSingle, onClick, reply_count = 0 } = props; + const { channelCapabilities } = useChannelStateContext(); const { t } = useTranslationContext('MessageRepliesCountButton'); @@ -33,6 +35,7 @@ const UnMemoizedMessageRepliesCountButton = (props: MessageRepliesCountButtonPro