Loading app/core/src/main/java/com/fsck/k9/autocrypt/AutocryptDraftStateHeader.kt +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ data class AutocryptDraftStateHeader(val isEncrypt: Boolean, const val VALUE_YES = "yes"; @JvmStatic fun fromCryptoStatus(cryptoStatus: CryptoStatus): AutocryptDraftStateHeader { if (cryptoStatus.isSignOnly) { return AutocryptDraftStateHeader(false, true, cryptoStatus.isReplyToEncrypted, Loading app/core/src/main/java/com/fsck/k9/message/PgpMessageBuilder.java +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ public class PgpMessageBuilder extends MessageBuilder { private void addDraftStateHeader() { AutocryptDraftStateHeader autocryptDraftStateHeader = AutocryptDraftStateHeader.Companion.fromCryptoStatus(cryptoStatus); AutocryptDraftStateHeader.fromCryptoStatus(cryptoStatus); currentProcessedMimeMessage.setHeader(AutocryptDraftStateHeader.AUTOCRYPT_DRAFT_STATE_HEADER, autocryptDraftStateHeader.toHeaderValue()); } Loading app/ui/src/main/java/com/fsck/k9/activity/compose/ComposeCryptoStatus.kt +13 −11 Original line number Diff line number Diff line Loading @@ -15,7 +15,8 @@ import org.openintents.openpgp.OpenPgpApiManager.OpenPgpProviderState * during email composition to apply cryptographic operations before sending * or saving as draft. */ data class ComposeCryptoStatus(private val openPgpProviderState: OpenPgpProviderState, data class ComposeCryptoStatus( private val openPgpProviderState: OpenPgpProviderState, override val openPgpKeyId: Long?, val recipientAddresses: List<String>, override val isPgpInlineModeEnabled: Boolean, Loading @@ -24,7 +25,8 @@ data class ComposeCryptoStatus(private val openPgpProviderState: OpenPgpProvider override val isEncryptAllDrafts: Boolean, override val isEncryptSubject: Boolean, private val cryptoMode: CryptoMode, private val recipientAutocryptStatus: RecipientAutocryptStatus? = null) : CryptoStatus { private val recipientAutocryptStatus: RecipientAutocryptStatus? = null ) : CryptoStatus { constructor(openPgpProviderState: OpenPgpProviderState, openPgpKeyId: Long?, Loading Loading
app/core/src/main/java/com/fsck/k9/autocrypt/AutocryptDraftStateHeader.kt +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ data class AutocryptDraftStateHeader(val isEncrypt: Boolean, const val VALUE_YES = "yes"; @JvmStatic fun fromCryptoStatus(cryptoStatus: CryptoStatus): AutocryptDraftStateHeader { if (cryptoStatus.isSignOnly) { return AutocryptDraftStateHeader(false, true, cryptoStatus.isReplyToEncrypted, Loading
app/core/src/main/java/com/fsck/k9/message/PgpMessageBuilder.java +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ public class PgpMessageBuilder extends MessageBuilder { private void addDraftStateHeader() { AutocryptDraftStateHeader autocryptDraftStateHeader = AutocryptDraftStateHeader.Companion.fromCryptoStatus(cryptoStatus); AutocryptDraftStateHeader.fromCryptoStatus(cryptoStatus); currentProcessedMimeMessage.setHeader(AutocryptDraftStateHeader.AUTOCRYPT_DRAFT_STATE_HEADER, autocryptDraftStateHeader.toHeaderValue()); } Loading
app/ui/src/main/java/com/fsck/k9/activity/compose/ComposeCryptoStatus.kt +13 −11 Original line number Diff line number Diff line Loading @@ -15,7 +15,8 @@ import org.openintents.openpgp.OpenPgpApiManager.OpenPgpProviderState * during email composition to apply cryptographic operations before sending * or saving as draft. */ data class ComposeCryptoStatus(private val openPgpProviderState: OpenPgpProviderState, data class ComposeCryptoStatus( private val openPgpProviderState: OpenPgpProviderState, override val openPgpKeyId: Long?, val recipientAddresses: List<String>, override val isPgpInlineModeEnabled: Boolean, Loading @@ -24,7 +25,8 @@ data class ComposeCryptoStatus(private val openPgpProviderState: OpenPgpProvider override val isEncryptAllDrafts: Boolean, override val isEncryptSubject: Boolean, private val cryptoMode: CryptoMode, private val recipientAutocryptStatus: RecipientAutocryptStatus? = null) : CryptoStatus { private val recipientAutocryptStatus: RecipientAutocryptStatus? = null ) : CryptoStatus { constructor(openPgpProviderState: OpenPgpProviderState, openPgpKeyId: Long?, Loading