mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #7799 from nextcloud/bugfix/fixAgainEndToEndEncryptionKeyGeneration
fix wrong if condition
This commit is contained in:
commit
ddeb2ca820
@ -1694,7 +1694,7 @@ void ClientSideEncryption::decryptPrivateKey(const AccountPtr &account, const QB
|
||||
_privateKey = privateKey;
|
||||
} else {
|
||||
const auto deprecatedSha1PrivateKey = EncryptionHelper::decryptPrivateKey(deprecatedSha1Password, key);
|
||||
if (!privateKey.isEmpty()) {
|
||||
if (!deprecatedSha1PrivateKey.isEmpty()) {
|
||||
_privateKey = deprecatedSha1PrivateKey;
|
||||
} else {
|
||||
_privateKey = EncryptionHelper::decryptPrivateKey(deprecatedPassword, key);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user