Narrow down the condition slightly

This commit is contained in:
Dan Abramov
2024-11-22 23:24:17 +00:00
parent 4e09534475
commit a3d7e3e56c
+2 -1
View File
@@ -4,6 +4,7 @@ import * as WebBrowser from 'expo-web-browser'
import {
createBskyAppAbsoluteUrl,
isBskyAppUrl,
isBskyRSSUrl,
isRelativeUrl,
} from '#/lib/strings/url-helpers'
@@ -28,7 +29,7 @@ export function useOpenLink() {
}
if (isNative && !url.startsWith('mailto:')) {
if (!optOutOfUtm) {
if (!optOutOfUtm && !isBskyAppUrl(url) && url.startsWith('http')) {
url = addUtmSource(url)
}
if (override === undefined && enabled === undefined) {