Skip to content

Commit

Permalink
Merge pull request #7799 from nextcloud/bugfix/fixAgainEndToEndEncryp…
Browse files Browse the repository at this point in the history
…tionKeyGeneration

fix wrong if condition
  • Loading branch information
mgallien authored Jan 29, 2025
2 parents 53bf28e + fb0b89f commit ddeb2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ddeb2ca

Please sign in to comment.