diff --git a/src/pages/common/components/ChatComponent/ChatComponent.tsx b/src/pages/common/components/ChatComponent/ChatComponent.tsx index 6f5ddc2663..3903aa4e78 100644 --- a/src/pages/common/components/ChatComponent/ChatComponent.tsx +++ b/src/pages/common/components/ChatComponent/ChatComponent.tsx @@ -174,6 +174,7 @@ export default function ChatComponent({ singleEmojiText: styles.singleEmojiText, multipleEmojiText: styles.multipleEmojiText, }, + onFeedItemClick, }); const { chatMessagesData, diff --git a/src/pages/common/components/ChatComponent/hooks/useDiscussionChatAdapter.ts b/src/pages/common/components/ChatComponent/hooks/useDiscussionChatAdapter.ts index ba39c257c5..77c2fcf37f 100644 --- a/src/pages/common/components/ChatComponent/hooks/useDiscussionChatAdapter.ts +++ b/src/pages/common/components/ChatComponent/hooks/useDiscussionChatAdapter.ts @@ -6,8 +6,8 @@ import { useDiscussionMessagesById, useMarkFeedItemAsSeen, } from "@/shared/hooks/useCases"; -import { DirectParent, User } from "@/shared/models"; import { TextStyles } from "@/shared/hooks/useCases/useDiscussionMessagesById"; +import { DirectParent, User } from "@/shared/models"; interface Options { hasPermissionToHide: boolean; @@ -28,8 +28,8 @@ interface Return { } export const useDiscussionChatAdapter = (options: Options): Return => { - const { hasPermissionToHide, textStyles, discussionId } = options; - + const { hasPermissionToHide, textStyles, discussionId, onFeedItemClick } = + options; const user = useSelector(selectUser()); const userId = user?.uid; const { data: commonMembers, fetchCommonMembers } = useCommonMembers(); @@ -44,7 +44,8 @@ export const useDiscussionChatAdapter = (options: Options): Return => { discussionId, hasPermissionToHide, users, - textStyles + textStyles, + onFeedItemClick, }); const { markFeedItemAsSeen } = useMarkFeedItemAsSeen();