mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Remove workaround for getBoolean from JsonRpcLocalCommand
This commit is contained in:
parent
f44b148946
commit
c9f5550d18
17 changed files with 22 additions and 31 deletions
|
@ -39,7 +39,7 @@ public class TrustCommand implements JsonRpcLocalCommand {
|
|||
) throws CommandException {
|
||||
var recipentString = ns.getString("recipient");
|
||||
var recipient = CommandUtil.getSingleRecipientIdentifier(recipentString, m.getSelfNumber());
|
||||
if (ns.getBoolean("trust-all-known-keys")) {
|
||||
if (Boolean.TRUE.equals(ns.getBoolean("trust-all-known-keys"))) {
|
||||
boolean res = m.trustIdentityAllKeys(recipient);
|
||||
if (!res) {
|
||||
throw new UserErrorException("Failed to set the trust for this number, make sure the number is correct.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue