Skip to content

Commit

Permalink
Check if required quote-author parameter is missing
Browse files Browse the repository at this point in the history
Fixes #1716
  • Loading branch information
AsamK committed Feb 27, 2025
1 parent a089a5e commit ed79e0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/asamk/signal/commands/SendCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public void handleCommand(
final var quoteTimestamp = ns.getLong("quote-timestamp");
if (quoteTimestamp != null) {
final var quoteAuthor = ns.getString("quote-author");
if (quoteAuthor == null) {
throw new UserErrorException("Quote author parameter is missing");
}
final var quoteMessage = ns.getString("quote-message");
final var quoteMentionStrings = ns.<String>getList("quote-mention");
final var quoteMentions = quoteMentionStrings == null
Expand Down

0 comments on commit ed79e0b

Please sign in to comment.