Support extra case of config migration
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
8b7fff27b7
commit
b41d5e4ee7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue