Page MenuHomePhorge

D8875.1765327006.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D8875.1765327006.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
@@ -2,15 +2,20 @@
import * as React from 'react';
+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,
+hasAccessToChat: boolean,
+text: string,
};
function MarkdownChatMention(props: MarkdownChatMentionProps): React.Node {
- const { hasAccessToChat, text } = props;
+ const { threadInfo, hasAccessToChat, text } = props;
+ const onClick = useOnClickThread(threadInfo);
if (!hasAccessToChat) {
return text;
@@ -18,7 +23,9 @@
return (
<strong>
- <a className={css.chatMention}>{text}</a>
+ <a className={css.chatMention} onClick={onClick}>
+ {text}
+ </a>
</strong>
);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 12:36 AM (15 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5859187
Default Alt Text
D8875.1765327006.diff (1 KB)

Event Timeline