Merge pull request #7799 from nextcloud/bugfix/fixAgainEndToEndEncryptionKeyGeneration

fix wrong if condition
This commit is contained in:
Matthieu Gallien 2025-01-29 09:29:56 +01:00 committed by GitHub
commit ddeb2ca820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);