From 0ba083f5138f187fa6ca8faa8f47c4ddcac781d8 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 8 Apr 2025 10:18:10 +0300 Subject: [PATCH] Set the NSE client as memory constrained. This, following the `roomLoadSettings` tweaks, changes SQLite store settings and further decreases memory consumption. --- NSE/Sources/Other/NSEUserSession.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/NSE/Sources/Other/NSEUserSession.swift b/NSE/Sources/Other/NSEUserSession.swift index 9cd0ec7f0..d7d6a4ca0 100644 --- a/NSE/Sources/Other/NSEUserSession.swift +++ b/NSE/Sources/Other/NSEUserSession.swift @@ -39,6 +39,7 @@ final class NSEUserSession { sessionDelegate: clientSessionDelegate, appHooks: appHooks, enableOnlySignedDeviceIsolationMode: appSettings.enableOnlySignedDeviceIsolationMode) + .systemIsMemoryConstrained() .sessionPaths(dataPath: credentials.restorationToken.sessionDirectories.dataPath, cachePath: credentials.restorationToken.sessionDirectories.cachePath) .username(username: credentials.userID)