Commit 5d74180a authored by Sandro Knauß's avatar Sandro Knauß 🐝
Browse files

Autocrypt does not force to always encrypt.

parent 5825bba1
......@@ -1510,8 +1510,6 @@ std::vector<GpgME::Key> Kleo::KeyResolver::getEncryptionKeys(const QString &pers
// Accept any autocrypt key, as the validility is not used in Autocrypt.
if (matchingKeys.size() == 1) {
if (recipient->prefer_encrypt()) {
d->mContactPreferencesMap[address].encryptionPreference = AlwaysEncrypt;
} else {
d->mContactPreferencesMap[address].encryptionPreference = AlwaysEncryptIfPossible;
}
d->mAutocryptMap[matchingKeys[0].primaryFingerprint()] = address;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment