From b41d5e4ee71594e9b7f3f4a68373cc1518ac16ae Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 15 Jul 2024 11:01:19 -0500 Subject: [PATCH] Support extra case of config migration Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- app/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.ts b/app/main.ts index c752dd431bf..7ed15af2dc8 100644 --- a/app/main.ts +++ b/app/main.ts @@ -1653,6 +1653,7 @@ function getSQLKey(): string { getLogger().info('getSQLKey: updating encrypted key in the config'); const encrypted = safeStorage.encryptString(key).toString('hex'); userConfig.set('encryptedKey', encrypted); + userConfig.set('key', undefined); } else { getLogger().info('getSQLKey: updating plaintext key in the config'); userConfig.set('key', key);