diff --git a/web/chat/inline-engagement.react.js b/web/chat/inline-engagement.react.js --- a/web/chat/inline-engagement.react.js +++ b/web/chat/inline-engagement.react.js @@ -51,18 +51,26 @@ const onClickThread = useOnClickThread(threadInfo); + const onClickReplies = React.useCallback( + (event: SyntheticEvent) => { + popModal(); + onClickThread(event); + }, + [popModal, onClickThread], + ); + const sidebarItem = React.useMemo(() => { if (!threadInfo || !repliesText) { return null; } return ( - + {repliesText} ); - }, [threadInfo, repliesText, onClickThread, threadsContainerClasses]); + }, [threadInfo, repliesText, onClickReplies, threadsContainerClasses]); const onClickReactions = React.useCallback( (event: SyntheticEvent) => {