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

Unverified Commit 5444415c authored by Vasyl Gello's avatar Vasyl Gello
Browse files

Do not encrypt message subject if message body is not encrypted



Fixes #4718

Signed-off-by: default avatarVasyl Gello <vasek.gello@gmail.com>
parent 26b78233
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ public class PgpMessageBuilder extends MessageBuilder {

                boolean payloadSupportsMimeHeaders = !isPgpInlineMode;
                if (payloadSupportsMimeHeaders) {
                    if (cryptoStatus.isEncryptSubject()) {
                    if (cryptoStatus.isEncryptSubject() && shouldEncrypt) {
                        moveSubjectIntoEncryptedPayload();
                    }
                    maybeAddGossipHeadersToBodyPart();