Make StandardSiteEmbed peekable (#10866)

This commit is contained in:
Samuel Newman
2026-06-11 23:49:09 +03:00
committed by GitHub
parent b281e23f11
commit f0e20d4c56
4 changed files with 129 additions and 120 deletions
+3 -3
View File
@@ -26,7 +26,7 @@ export function useOpenLink() {
const {inAppBrowserConsentControl} = useGlobalDialogsControlContext()
const openLink = useCallback(
async (url: string, override?: boolean, shouldProxy?: boolean) => {
(url: string, override?: boolean, shouldProxy?: boolean) => {
if (isBskyRSSUrl(url) && isRelativeUrl(url)) {
url = createBskyAppAbsoluteUrl(url)
}
@@ -66,12 +66,12 @@ export function useOpenLink() {
}).catch(err => {
if (__DEV__)
logger.error('Could not open web browser', {message: err})
Linking.openURL(url)
void Linking.openURL(url)
})
return
}
}
Linking.openURL(url)
void Linking.openURL(url)
},
[ax, enabled, inAppBrowserConsentControl, t, dialogContext],
)