From a64e0a855b59ba2bf88d3d1b8145e86e08645263 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Mon, 15 Jul 2024 08:49:41 -0700 Subject: [PATCH] Support extra case of config migration --- app/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.ts b/app/main.ts index 2d4206940ef4..3b77f5c65fc3 100644 --- a/app/main.ts +++ b/app/main.ts @@ -1654,6 +1654,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);