From 100d4d92dc5ec0d44b0e22063c45a12ee5b4fab6 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 17 Apr 2026 12:05:34 +0300 Subject: [PATCH] Switch to fatalErroring on SDK background task panics in release builds too --- ElementX/Sources/Services/Client/ClientProxy.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ElementX/Sources/Services/Client/ClientProxy.swift b/ElementX/Sources/Services/Client/ClientProxy.swift index cdd10c3d4..d0fd9111a 100644 --- a/ElementX/Sources/Services/Client/ClientProxy.swift +++ b/ElementX/Sources/Services/Client/ClientProxy.swift @@ -231,10 +231,7 @@ class ClientProxy: ClientProxyProtocol { switch error { case .panic(let message, let backtrace): MXLog.error("Received background task panic: \(message ?? "Missing message")\nBacktrace:\n\(backtrace ?? "Missing backtrace")") - - if AppSettings.appBuildType == .debug || AppSettings.appBuildType == .nightly { - fatalError(message ?? "") - } + fatalError(message ?? "") case .error(let error): MXLog.error("Received background task error: \(error)") case .earlyTermination: