Bluesky app fork with some witchin' additions 💫

remove await on dismissBrowser (#9304)

authored by samuel.fm and committed by

GitHub cfa2534c 2d626f7b

+7 -4
+7 -4
src/lib/hooks/useIntentHandler.ts
··· 5 5 6 6 import {useOpenComposer} from '#/lib/hooks/useOpenComposer' 7 7 import {logger} from '#/logger' 8 - import {isNative} from '#/platform/detection' 8 + import {isIOS, isNative} from '#/platform/detection' 9 9 import {useSession} from '#/state/session' 10 10 import {useCloseAllActiveElements} from '#/state/util' 11 11 import { ··· 34 34 35 35 React.useEffect(() => { 36 36 const handleIncomingURL = async (url: string) => { 37 - if (isNative) { 38 - // Close in-app browser if it's open 39 - await WebBrowser.dismissBrowser().catch(() => {}) 37 + if (isIOS) { 38 + // Close in-app browser if it's open (iOS only) 39 + // TEMP: promise never resolves if the browser is not open, so don't await 40 + // https://github.com/expo/expo/issues/40710 41 + // add the await back when possible since it's needed to fix the IAB share bug -sfn 42 + /* await */ WebBrowser.dismissBrowser().catch(() => {}) 40 43 } 41 44 42 45 const referrerInfo = Referrer.getReferrerInfo()