X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/37c65ca6b4d86c918740de323be797bd8246ffc9..3602ef9be940e287bfe6ed32972ce13fea9deaa4:/src/main/java/org/asamk/signal/commands/SendReactionCommand.java diff --git a/src/main/java/org/asamk/signal/commands/SendReactionCommand.java b/src/main/java/org/asamk/signal/commands/SendReactionCommand.java index 0eafc2fd..56fa81f2 100644 --- a/src/main/java/org/asamk/signal/commands/SendReactionCommand.java +++ b/src/main/java/org/asamk/signal/commands/SendReactionCommand.java @@ -31,6 +31,7 @@ public class SendReactionCommand implements JsonRpcLocalCommand { subparser.help("Send reaction to a previously received or sent message."); subparser.addArgument("-g", "--group-id", "--group").help("Specify the recipient group ID.").nargs("*"); subparser.addArgument("recipient").help("Specify the recipients' phone number.").nargs("*"); + subparser.addArgument("-u", "--username").help("Specify the recipient username or username link.").nargs("*"); subparser.addArgument("--note-to-self") .help("Send the reaction to self without notification.") .action(Arguments.storeTrue()); @@ -57,11 +58,13 @@ public class SendReactionCommand implements JsonRpcLocalCommand { final var isNoteToSelf = Boolean.TRUE.equals(ns.getBoolean("note-to-self")); final var recipientStrings = ns.getList("recipient"); final var groupIdStrings = ns.getList("group-id"); + final var usernameStrings = ns.getList("username"); final var recipientIdentifiers = CommandUtil.getRecipientIdentifiers(m, isNoteToSelf, recipientStrings, - groupIdStrings); + groupIdStrings, + usernameStrings); final var emoji = ns.getString("emoji"); final var isRemove = Boolean.TRUE.equals(ns.getBoolean("remove"));