Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(mobile): use tryOpenExternalUrl for markdown links in ThreadFeed (#5872)
mohamedmastouri-hueb277cc65e045
diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsxindex d138bb0c9..c5edb822a 100644--- a/apps/mobile/src/features/threads/ThreadFeed.tsx+++ b/apps/mobile/src/features/threads/ThreadFeed.tsx@@ -28,7 +28,6 @@ import {import {ActivityIndicator,Image,- Linking,Platform,type LayoutChangeEvent,type NativeScrollEvent,@@ -51,6 +50,7 @@ import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";import { useFontFamily } from "../../lib/useFontFamily";import { scopedThreadKey } from "../../lib/scopedEntities";import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";+import { tryOpenExternalUrl } from "../../lib/openExternalUrl";import { hasWideMarkdownBlock } from "../../lib/wideMarkdownBlocks";import {hasNativeSelectableMarkdownText,@@ -283,7 +283,7 @@ const MarkdownExternalLink = memo(function MarkdownExternalLink(props: {<NativeTextclassName="font-sans"onPress={() => {- void Linking.openURL(props.href);+ void tryOpenExternalUrl(props.href, "markdown-link");}}style={{color: props.color,@@ -613,7 +613,7 @@ function useMarkdownStyles(onLinkPress: (href: string) => void): MarkdownStyleSeonPress={linkHref? () => {- void Linking.openURL(linkHref);+ void tryOpenExternalUrl(linkHref, "markdown-link");}: undefined}@@ -1436,7 +1436,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {}if (presentation.href) {- void Linking.openURL(presentation.href);+ void tryOpenExternalUrl(presentation.href, "markdown-link");}},[props.environmentId, props.threadId, props.workspaceRoot, navigation],