Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3351906
D8875.id30106.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
927 B
Referenced Files
None
Subscribers
None
D8875.id30106.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8875: [web] Make chat mentions clickable
Attached
Detach File
Event Timeline
Log In to Comment