mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Bugfix: don't decrease trustLevel when receiving messages
This commit is contained in:
parent
b2289568ef
commit
a724251f8d
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ class JsonIdentityKeyStore implements IdentityKeyStore {
|
||||||
if (!id.identityKey.equals(identityKey))
|
if (!id.identityKey.equals(identityKey))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
id.trustLevel = trustLevel;
|
if (id.trustLevel.compareTo(trustLevel) < 0) {
|
||||||
|
id.trustLevel = trustLevel;
|
||||||
|
}
|
||||||
if (added != null) {
|
if (added != null) {
|
||||||
id.added = added;
|
id.added = added;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue