mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Align cli param names for recipient
This commit is contained in:
parent
ca52c01031
commit
95792be9bc
6 changed files with 17 additions and 15 deletions
|
@ -27,7 +27,9 @@ public class SendReceiptCommand implements JsonRpcLocalCommand {
|
|||
.type(long.class)
|
||||
.nargs("+")
|
||||
.help("Specify the timestamp of the messages for which a receipt should be sent.");
|
||||
subparser.addArgument("--type").help("Specify the receipt type.").choices("read", "viewed").setDefault("read");
|
||||
subparser.addArgument("--type")
|
||||
.help("Specify the receipt type (default is read receipt).")
|
||||
.choices("read", "viewed");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -41,7 +43,7 @@ public class SendReceiptCommand implements JsonRpcLocalCommand {
|
|||
final var type = ns.getString("type");
|
||||
|
||||
try {
|
||||
if ("read".equals(type)) {
|
||||
if (type == null || "read".equals(type)) {
|
||||
m.sendReadReceipt(recipient, targetTimestamps);
|
||||
} else if ("viewed".equals(type)) {
|
||||
m.sendViewedReceipt(recipient, targetTimestamps);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue