mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-26 02:24:21 +01:00
Fix batch response in case of empty responses list
This adapts the implementation to the JSON-RPC specification.
This commit is contained in:
@@ -95,7 +95,9 @@ public class JsonRpcReader {
|
||||
return handleRequest(requestHandler, request);
|
||||
}).filter(Objects::nonNull).toList();
|
||||
|
||||
jsonRpcSender.sendBatchResponses(responseList);
|
||||
if (responseList.size() > 0) {
|
||||
jsonRpcSender.sendBatchResponses(responseList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user