authorgravatar for mohamed.mastouri@ensi-uma.tnmohamedmastouri-hue <mohamed.mastouri@ensi-uma.tn> 2026-08-15 11:44:30+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-15 12:44:30+02:00
logb277cc65e045899e7aa941e92d04f2b4996f27bb
tree57738af91e615d7535b50860bdd7b57659c96c25
parent9f26656cb958853f90f7215387d604c098937db8
signature Signed by PGP key B5690EEEBB952194

fix(mobile): use tryOpenExternalUrl for markdown links in ThreadFeed (#5872)

Co-authored-by: codex <codex@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>

1 files changed, 4 insertions(+), 4 deletions(-)

apps/mobile/src/features/threads/ThreadFeed.tsx+4-4
......@@ -28,7 +28,6 @@ import {
2828import {
2929 ActivityIndicator,
3030 Image,
31 Linking,
3231 Platform,
3332 type LayoutChangeEvent,
3433 type NativeScrollEvent,
......@@ -51,6 +50,7 @@ import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
5150import { useFontFamily } from "../../lib/useFontFamily";
5251import { scopedThreadKey } from "../../lib/scopedEntities";
5352import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
53import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
5454import { hasWideMarkdownBlock } from "../../lib/wideMarkdownBlocks";
5555import {
5656 hasNativeSelectableMarkdownText,
......@@ -283,7 +283,7 @@ const MarkdownExternalLink = memo(function MarkdownExternalLink(props: {
283283 <NativeText
284284 className="font-sans"
285285 onPress={() => {
286 void Linking.openURL(props.href);
286 void tryOpenExternalUrl(props.href, "markdown-link");
287287 }}
288288 style={{
289289 color: props.color,
......@@ -613,7 +613,7 @@ function useMarkdownStyles(onLinkPress: (href: string) => void): MarkdownStyleSe
613613 onPress={
614614 linkHref
615615 ? () => {
616 void Linking.openURL(linkHref);
616 void tryOpenExternalUrl(linkHref, "markdown-link");
617617 }
618618 : undefined
619619 }
......@@ -1436,7 +1436,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
14361436 }
14371437
14381438 if (presentation.href) {
1439 void Linking.openURL(presentation.href);
1439 void tryOpenExternalUrl(presentation.href, "markdown-link");
14401440 }
14411441 },
14421442 [props.environmentId, props.threadId, props.workspaceRoot, navigation],