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 {...@@ -28,7 +28,6 @@ import {
28import {28import {
29 ActivityIndicator,29 ActivityIndicator,
30 Image,30 Image,
31 Linking,
32 Platform,31 Platform,
33 type LayoutChangeEvent,32 type LayoutChangeEvent,
34 type NativeScrollEvent,33 type NativeScrollEvent,
...@@ -51,6 +50,7 @@ import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";...@@ -51,6 +50,7 @@ import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
51import { useFontFamily } from "../../lib/useFontFamily";50import { useFontFamily } from "../../lib/useFontFamily";
52import { scopedThreadKey } from "../../lib/scopedEntities";51import { scopedThreadKey } from "../../lib/scopedEntities";
53import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";52import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
53import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
54import { hasWideMarkdownBlock } from "../../lib/wideMarkdownBlocks";54import { hasWideMarkdownBlock } from "../../lib/wideMarkdownBlocks";
55import {55import {
56 hasNativeSelectableMarkdownText,56 hasNativeSelectableMarkdownText,
...@@ -283,7 +283,7 @@ const MarkdownExternalLink = memo(function MarkdownExternalLink(props: {...@@ -283,7 +283,7 @@ const MarkdownExternalLink = memo(function MarkdownExternalLink(props: {
283 <NativeText283 <NativeText
284 className="font-sans"284 className="font-sans"
285 onPress={() => {285 onPress={() => {
286 void Linking.openURL(props.href);286 void tryOpenExternalUrl(props.href, "markdown-link");
287 }}287 }}
288 style={{288 style={{
289 color: props.color,289 color: props.color,
...@@ -613,7 +613,7 @@ function useMarkdownStyles(onLinkPress: (href: string) => void): MarkdownStyleSe...@@ -613,7 +613,7 @@ function useMarkdownStyles(onLinkPress: (href: string) => void): MarkdownStyleSe
613 onPress={613 onPress={
614 linkHref614 linkHref
615 ? () => {615 ? () => {
616 void Linking.openURL(linkHref);616 void tryOpenExternalUrl(linkHref, "markdown-link");
617 }617 }
618 : undefined618 : undefined
619 }619 }
...@@ -1436,7 +1436,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {...@@ -1436,7 +1436,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1436 }1436 }
14371437
1438 if (presentation.href) {1438 if (presentation.href) {
1439 void Linking.openURL(presentation.href);1439 void tryOpenExternalUrl(presentation.href, "markdown-link");
1440 }1440 }
1441 },1441 },
1442 [props.environmentId, props.threadId, props.workspaceRoot, navigation],1442 [props.environmentId, props.threadId, props.workspaceRoot, navigation],