mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-09 00:44:25 +01:00
Use record classes
This commit is contained in:
@@ -102,8 +102,8 @@ public class SendCommand implements JsonRpcLocalCommand {
|
||||
|
||||
try {
|
||||
var results = m.sendMessage(new Message(messageText, attachments), recipientIdentifiers);
|
||||
outputResult(outputWriter, results.getTimestamp());
|
||||
ErrorUtils.handleSendMessageResults(results.getResults());
|
||||
outputResult(outputWriter, results.timestamp());
|
||||
ErrorUtils.handleSendMessageResults(results.results());
|
||||
} catch (AttachmentInvalidException | IOException e) {
|
||||
throw new UnexpectedErrorException("Failed to send message: " + e.getMessage() + " (" + e.getClass()
|
||||
.getSimpleName() + ")", e);
|
||||
|
||||
Reference in New Issue
Block a user