mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Implement JsonRpc command for updateGroup
Co-authored-by: technillogue <technillogue@gmail.com> Closes #666
This commit is contained in:
parent
b09677a46c
commit
6826e3cb49
6 changed files with 84 additions and 90 deletions
|
@ -1,6 +1,5 @@
|
|||
package org.asamk.signal.util;
|
||||
|
||||
import org.asamk.signal.PlainTextWriter;
|
||||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.asamk.signal.commands.exceptions.IOErrorException;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -21,12 +20,9 @@ public class ErrorUtils {
|
|||
private ErrorUtils() {
|
||||
}
|
||||
|
||||
public static void handleTimestampAndSendMessageResults(
|
||||
PlainTextWriter writer, long timestamp, List<SendMessageResult> results
|
||||
public static void handleSendMessageResults(
|
||||
List<SendMessageResult> results
|
||||
) throws CommandException {
|
||||
if (timestamp != 0) {
|
||||
writer.println("{}", timestamp);
|
||||
}
|
||||
var errors = getErrorMessagesFromSendMessageResults(results);
|
||||
handleSendMessageResultErrors(errors);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue