diff --git a/web/markdown/markdown-chat-mention.react.js b/web/markdown/markdown-chat-mention.react.js
--- a/web/markdown/markdown-chat-mention.react.js
+++ b/web/markdown/markdown-chat-mention.react.js
@@ -5,6 +5,7 @@
import type { ResolvedThreadInfo } from 'lib/types/thread-types.js';
import css from './markdown.css';
+import { useOnClickThread } from '../selectors/thread-selectors.js';
type MarkdownChatMentionProps = {
+threadInfo: ResolvedThreadInfo,
@@ -13,14 +14,15 @@
};
function MarkdownChatMention(props: MarkdownChatMentionProps): React.Node {
- const { hasAccessToChat, text } = props;
+ const { threadInfo, hasAccessToChat, text } = props;
+ const onClick = useOnClickThread(threadInfo);
if (!hasAccessToChat) {
return text;
}
return (
-
+
{text}
);