X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/b2289568efb9f9c0fed3fac019ae082a05cd39f5..a724251f8d9a629ae7e59a6eb7518c6059911946:/src/main/java/org/asamk/signal/JsonIdentityKeyStore.java diff --git a/src/main/java/org/asamk/signal/JsonIdentityKeyStore.java b/src/main/java/org/asamk/signal/JsonIdentityKeyStore.java index 7cde350c..14c0d11e 100644 --- a/src/main/java/org/asamk/signal/JsonIdentityKeyStore.java +++ b/src/main/java/org/asamk/signal/JsonIdentityKeyStore.java @@ -58,7 +58,9 @@ class JsonIdentityKeyStore implements IdentityKeyStore { if (!id.identityKey.equals(identityKey)) continue; - id.trustLevel = trustLevel; + if (id.trustLevel.compareTo(trustLevel) < 0) { + id.trustLevel = trustLevel; + } if (added != null) { id.added = added; }