fix switch/case screwup for signature handling
This commit is contained in:
parent
2b4d6d7750
commit
217b5bf9f4
1 changed files with 2 additions and 2 deletions
|
@ -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!");
|
||||
|
|
Loading…
Reference in a new issue