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

Commit 293e23d0 authored by Vincent Breitmoser's avatar Vincent Breitmoser
Browse files

messageview: display support for encapsulated signed parts

parent c640e4a6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -173,6 +173,14 @@ public enum MessageCryptoDisplayStatus {
            throw new AssertionError("Both OpenPGP results must be non-null at this point!");
        }

        if (signatureResult.getResult() == OpenPgpSignatureResult.RESULT_NO_SIGNATURE &&
                cryptoResult.hasEncapsulatedResult()) {
            CryptoResultAnnotation encapsulatedResult = cryptoResult.getEncapsulatedResult();
            if (encapsulatedResult.isOpenPgpResult()) {
                signatureResult = encapsulatedResult.getOpenPgpSignatureResult();
            }
        }

        // TODO handle mismatched user id

        switch (decryptionResult.getResult()) {