From 96669571a7238bc0829870a31e05f018b831866b Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 29 Dec 2025 17:47:56 +0200 Subject: [PATCH] restore ota update in background behaviour --- src/lib/hooks/useOTAUpdates.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts index bbdbc90509..466d032083 100644 --- a/src/lib/hooks/useOTAUpdates.ts +++ b/src/lib/hooks/useOTAUpdates.ts @@ -12,7 +12,7 @@ import { import {isNetworkError} from '#/lib/strings/errors' import {logger} from '#/logger' -import {isAndroid, isIOS} from '#/platform/detection' +import {isIOS} from '#/platform/detection' import {IS_TESTFLIGHT} from '#/env' const MINIMUM_MINIMIZE_TIME = 15 * 60e3 @@ -193,13 +193,6 @@ export function useOTAUpdates() { return } - // TEMP: disable wake-from-background OTA loading on Android. - // This is causing a crash when the thread view is open due to - // `maintainVisibleContentPosition`. See repro repo for more details: - // https://github.com/mozzius/ota-crash-repro - // Old Arch only - re-enable once we're on the New Archictecture! -sfn - if (isAndroid) return - const subscription = AppState.addEventListener( 'change', async nextAppState => {