do use PgpMessageBuilder if the provider state is an error
this is handled later on in SendErrorState, but we don't want to
accidentally send mails that were supposed to go out encrypted in
plaintext just because the crypto provider wasn't reachable for
some reason.
@@ -125,9 +125,8 @@ public class ComposeCryptoStatus {
}
public boolean shouldUsePgpMessageBuilder() {
- return cryptoProviderState != CryptoProviderState.UNCONFIGURED &&
- cryptoProviderState != CryptoProviderState.ERROR &&
- openPgpKeyId != null;
+ // CryptoProviderState.ERROR will be handled as an actual error, see SendErrorState
+ return cryptoProviderState != CryptoProviderState.UNCONFIGURED && openPgpKeyId != null;
}
public boolean isEncryptionEnabled() {
