Fix APG legacy encryption
This commit is contained in:
parent
5640dece0f
commit
b765988423
1 changed files with 10 additions and 0 deletions
|
@ -1975,6 +1975,16 @@ public class MessageCompose extends K9Activity implements OnClickListener,
|
|||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (mPgpData.hasEncryptionKeys() || mPgpData.hasSignatureKey()) {
|
||||
if (mPgpData.getEncryptedData() == null) {
|
||||
String text = buildText(false).getText();
|
||||
mPreventDraftSaving = true;
|
||||
crypto.encrypt(this, text, mPgpData);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
sendMessage();
|
||||
|
||||
|
|
Loading…
Reference in a new issue