mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-18 22:54:20 +01:00
Remove workaround for getBoolean from JsonRpcLocalCommand
This commit is contained in:
@@ -52,7 +52,7 @@ public class SendReactionCommand implements JsonRpcLocalCommand {
|
||||
public void handleCommand(
|
||||
final Namespace ns, final Manager m, final OutputWriter outputWriter
|
||||
) throws CommandException {
|
||||
final var isNoteToSelf = ns.getBoolean("note-to-self");
|
||||
final var isNoteToSelf = Boolean.TRUE.equals(ns.getBoolean("note-to-self"));
|
||||
final var recipientStrings = ns.<String>getList("recipient");
|
||||
final var groupIdStrings = ns.<String>getList("group-id");
|
||||
|
||||
@@ -62,7 +62,7 @@ public class SendReactionCommand implements JsonRpcLocalCommand {
|
||||
groupIdStrings);
|
||||
|
||||
final var emoji = ns.getString("emoji");
|
||||
final var isRemove = ns.getBoolean("remove");
|
||||
final var isRemove = Boolean.TRUE.equals(ns.getBoolean("remove"));
|
||||
final var targetAuthor = ns.getString("target-author");
|
||||
final var targetTimestamp = ns.getLong("target-timestamp");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user