diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-11-17 20:51:43 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-11-17 20:51:43 +0100 |
commit | ea71720faaa39661e2d34258e3a3e97e37d83cd6 (patch) | |
tree | a5a2a0335f3255184d19af2d21e8925bc188ce38 /src/main/java/de/pixart/messenger/crypto | |
parent | 3765d552926951452b34fb024e8d50f000c6baab (diff) |
fixed enabling trust toggle. unknown->untrusted
Diffstat (limited to 'src/main/java/de/pixart/messenger/crypto')
-rw-r--r-- | src/main/java/de/pixart/messenger/crypto/axolotl/FingerprintStatus.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/crypto/axolotl/FingerprintStatus.java b/src/main/java/de/pixart/messenger/crypto/axolotl/FingerprintStatus.java index 38aef325e..c7939411e 100644 --- a/src/main/java/de/pixart/messenger/crypto/axolotl/FingerprintStatus.java +++ b/src/main/java/de/pixart/messenger/crypto/axolotl/FingerprintStatus.java @@ -74,7 +74,11 @@ public class FingerprintStatus { } public boolean isTrusted() { - return trust == Trust.TRUSTED || trust == Trust.VERIFIED || trust == Trust.VERIFIED_X509; + return trust == Trust.TRUSTED || isVerified(); + } + + public boolean isVerified() { + return trust == Trust.VERIFIED || trust == Trust.VERIFIED_X509; } public boolean isCompromised() { |