diff --git a/native/markdown/markdown-link.react.js b/native/markdown/markdown-link.react.js
--- a/native/markdown/markdown-link.react.js
+++ b/native/markdown/markdown-link.react.js
@@ -6,6 +6,7 @@
import { normalizeURL } from 'lib/utils/url-utils';
+import { MessagePressResponderContext } from '../chat/message-press-responder-context';
import { TextMessageMarkdownContext } from '../chat/text-message-markdown-context';
import { MarkdownContext, type MarkdownContextType } from './markdown-context';
@@ -60,9 +61,15 @@
);
const messageKey = textMessageMarkdownContext?.messageKey;
+ const messagePressResponderContext = React.useContext(
+ MessagePressResponderContext,
+ );
+
+ const onPressMessage = messagePressResponderContext?.onPressMessage;
+
const onPressLink = useDisplayLinkPrompt(target, markdownContext, messageKey);
- return ;
+ return ;
}
export default MarkdownLink;