From 801dea2969353de557ce7bc5e4211ca70e56c843 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 10 Jan 2023 09:48:17 -0800 Subject: [PATCH] Enable background throttling for everyone --- app/main.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/main.ts b/app/main.ts index 3a5c5f1ed22..bfdd37e094c 100644 --- a/app/main.ts +++ b/app/main.ts @@ -136,8 +136,6 @@ const development = getEnvironment() === Environment.Development || getEnvironment() === Environment.Staging; -const isThrottlingEnabled = development || !isProduction(app.getVersion()); - const enableCI = config.get('enableCI'); const forcePreloadBundle = config.get('forcePreloadBundle'); @@ -685,7 +683,7 @@ async function createWindow() { : '../ts/windows/main/preload.js' ), spellcheck: await getSpellCheckSetting(), - backgroundThrottling: isThrottlingEnabled, + backgroundThrottling: true, enablePreferredSizeMode: true, disableBlinkFeatures: 'Accelerated2dCanvas,AcceleratedSmallCanvases', }, @@ -998,10 +996,6 @@ ipc.on('set-is-call-active', (_event, isCallActive) => { return; } - if (!isThrottlingEnabled) { - return; - } - let backgroundThrottling: boolean; if (isCallActive) { getLogger().info('Background throttling disabled because a call is active');