Page MenuHomePhabricator

D8875.id30106.diff
No OneTemporary

D8875.id30106.diff

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 (
- <a className={css.chatMention}>
+ <a className={css.chatMention} onClick={onClick}>
<strong>{text}</strong>
</a>
);

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 3:59 AM (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573818
Default Alt Text
D8875.id30106.diff (927 B)

Event Timeline