import java.util.List;
-import static org.asamk.signal.util.ErrorUtils.handleAssertionError;
-
public class RemoteDeleteCommand implements DbusCommand {
@Override
.required(true)
.type(long.class)
.help("Specify the timestamp of the message to delete.");
- subparser.addArgument("-g", "--group")
- .help("Specify the recipient group ID.");
- subparser.addArgument("recipient")
- .help("Specify the recipients' phone number.").nargs("*");
+ subparser.addArgument("-g", "--group").help("Specify the recipient group ID.");
+ subparser.addArgument("recipient").help("Specify the recipients' phone number.").nargs("*");
}
@Override
timestamp = signal.sendRemoteDeleteMessage(targetTimestamp, recipients);
}
writer.println("{}", timestamp);
- } catch (AssertionError e) {
- handleAssertionError(e);
- throw e;
} catch (UnknownObject e) {
throw new UserErrorException("Failed to find dbus object, maybe missing the -u flag: " + e.getMessage());
} catch (Signal.Error.InvalidNumber e) {