disable wake-from-background OTA on Android (#9317)

This commit is contained in:
Samuel Newman
2025-11-03 19:08:34 +02:00
committed by GitHub
parent c6215065bd
commit 55e9298ee8
+8 -1
View File
@@ -12,7 +12,7 @@ import {
import {isNetworkError} from '#/lib/strings/errors'
import {logger} from '#/logger'
import {isIOS} from '#/platform/detection'
import {isAndroid, isIOS} from '#/platform/detection'
import {IS_TESTFLIGHT} from '#/env'
const MINIMUM_MINIMIZE_TIME = 15 * 60e3
@@ -193,6 +193,13 @@ 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 => {