mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-17 12:44:25 +01:00
Implement listIdentities and trust commands
Print the fingerprints of all known phone numbers and can set their trust
This commit is contained in:
@@ -13,6 +13,7 @@ import org.whispersystems.libsignal.state.SignalProtocolStore;
|
||||
import org.whispersystems.libsignal.state.SignedPreKeyRecord;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
class JsonSignalProtocolStore implements SignalProtocolStore {
|
||||
|
||||
@@ -72,6 +73,14 @@ class JsonSignalProtocolStore implements SignalProtocolStore {
|
||||
identityKeyStore.saveIdentity(name, identityKey, trustLevel, null);
|
||||
}
|
||||
|
||||
public Map<String, List<JsonIdentityKeyStore.Identity>> getIdentities() {
|
||||
return identityKeyStore.getIdentities();
|
||||
}
|
||||
|
||||
public List<JsonIdentityKeyStore.Identity> getIdentities(String name) {
|
||||
return identityKeyStore.getIdentities(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTrustedIdentity(String name, IdentityKey identityKey) {
|
||||
return identityKeyStore.isTrustedIdentity(name, identityKey);
|
||||
|
||||
Reference in New Issue
Block a user