Bugfix: don't decrease trustLevel when receiving messages

This commit is contained in:
AsamK 2016-08-20 16:04:43 +02:00
parent b2289568ef
commit a724251f8d

View file

@ -58,7 +58,9 @@ class JsonIdentityKeyStore implements IdentityKeyStore {
if (!id.identityKey.equals(identityKey))
continue;
if (id.trustLevel.compareTo(trustLevel) < 0) {
id.trustLevel = trustLevel;
}
if (added != null) {
id.added = added;
}