diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 88b71ad991..f10f2dc6ec 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1434,6 +1434,10 @@ public class FragmentCompose extends FragmentBase { if (BuildConfig.DEBUG || BuildConfig.BETA_RELEASE) Log.i("Keys=" + pgpKeyIds.length); + // Send without encryption + if (pgpKeyIds.length == 0) + return null; + // Get encrypt key Intent intent = new Intent(OpenPgpApi.ACTION_GET_KEY); intent.putExtra(OpenPgpApi.EXTRA_KEY_ID, pgpKeyIds[0]);