diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/ComposeCryptoStatus.kt b/app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/ComposeCryptoStatus.kt index c646dd964f506243f5bc2c10555b4de012343acc..7884e9309403d48e3697803253dbae098ed8cea5 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/ComposeCryptoStatus.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/ComposeCryptoStatus.kt @@ -117,6 +117,7 @@ data class ComposeCryptoStatus( val autocryptPendingIntent = recipientAutocryptStatus?.intent val sendErrorStateOrNull = when { + openPgpProviderState in listOf(OpenPgpProviderState.UNINITIALIZED, OpenPgpProviderState.UI_REQUIRED) -> null openPgpProviderState != OpenPgpProviderState.OK -> SendErrorState.PROVIDER_ERROR openPgpKeyId == null && (isEncryptionEnabled || isSignOnly) -> SendErrorState.KEY_CONFIG_ERROR isEncryptionEnabled && !allRecipientsCanEncrypt() -> SendErrorState.ENABLED_ERROR