You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Desktop: Fix handling of disabled master keys when enabling E2EE
This commit is contained in:
@@ -274,7 +274,7 @@ class EncryptionConfigScreenComponent extends React.Component<Props> {
|
||||
|
||||
// If the user has explicitly disabled the master key, we generate a
|
||||
// new one. Needed for one the password has been forgotten.
|
||||
if (!masterKey.enabled) masterKey = null;
|
||||
if (masterKey && !masterKey.enabled) masterKey = null;
|
||||
|
||||
let answer = null;
|
||||
if (isEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user