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

Commit 217b5bf9 authored by Vincent Breitmoser's avatar Vincent Breitmoser Committed by cketti
Browse files

fix switch/case screwup for signature handling

parent 2b4d6d77
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -261,13 +261,13 @@ public enum MessageCryptoDisplayStatus {
            case OpenPgpSignatureResult.RESULT_VALID_KEY_CONFIRMED:
            case OpenPgpSignatureResult.RESULT_VALID_KEY_UNCONFIRMED:
                switch (signatureResult.getSenderStatusResult()) {
                    case UNKNOWN:
                    case USER_ID_CONFIRMED:
                        return ENCRYPTED_SIGN_VERIFIED;
                    case USER_ID_UNCONFIRMED:
                        return ENCRYPTED_SIGN_UNVERIFIED;
                    case USER_ID_MISSING:
                        return ENCRYPTED_SIGN_MISMATCH;
                    case USER_ID_CONFIRMED:
                    case UNKNOWN:
                        return ENCRYPTED_SIGN_UNVERIFIED;
                }
                throw new IllegalStateException("unhandled encrypted result case!");