mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-04 14:44:26 +01:00
Bugfix: don't decrease trustLevel when receiving messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user