Bugfix: don't decrease trustLevel when receiving messages
This commit is contained in:
parent
b2289568ef
commit
a724251f8d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user