fix switch/case screwup for signature handling

This commit is contained in:
Vincent Breitmoser 2016-12-16 00:28:31 +01:00 committed by cketti
parent 2b4d6d7750
commit 217b5bf9f4

View file

@ -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!");