Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10875134 authored by Vincent Breitmoser's avatar Vincent Breitmoser
Browse files

Always use PGP/MIME for drafts

parent d7649a43
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ public class PgpMessageBuilder extends MessageBuilder {
        try {
            boolean shouldSign = cryptoStatus.isSigningEnabled() && !isDraft();
            boolean shouldEncrypt = cryptoStatus.isEncryptionEnabled();
            boolean isPgpInlineMode = cryptoStatus.isPgpInlineModeEnabled();
            boolean isPgpInlineMode = cryptoStatus.isPgpInlineModeEnabled() && !isDraft();

            if (!shouldSign && !shouldEncrypt) {
                queueMessageBuildSuccess(currentProcessedMimeMessage);
@@ -351,7 +351,7 @@ public class PgpMessageBuilder extends MessageBuilder {
            return;
        }

        if (cryptoStatus.isPgpInlineModeEnabled()) {
        if (!isDraft() && cryptoStatus.isPgpInlineModeEnabled()) {
            mimeBuildInlineMessage(pgpResultTempBody);
            return;
        }