mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
change received messages to be JsonRpcResponses instead of JsonRpcRequest notifications
This commit is contained in:
parent
e83e9ae313
commit
c3ccfa623f
1 changed files with 2 additions and 2 deletions
|
@ -71,9 +71,9 @@ public class JsonRpcDispatcherCommand implements LocalCommand {
|
|||
final var jsonRpcSender = new JsonRpcSender((JsonWriter) outputWriter);
|
||||
|
||||
final var receiveMessageHandler = new JsonReceiveMessageHandler(m,
|
||||
s -> jsonRpcSender.sendRequest(JsonRpcRequest.forNotification("receive",
|
||||
s -> jsonRpcSender.sendResponse(JsonRpcResponse.forSuccess(
|
||||
objectMapper.valueToTree(s),
|
||||
null)));
|
||||
objectMapper.valueToTree("receive"))));
|
||||
m.addReceiveHandler(receiveMessageHandler);
|
||||
|
||||
// Maybe this should be handled inside the Manager
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue