mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-02 22:04:18 +01:00
Extend error information in json output for received messages from untrusted identity
Fixes #91
This commit is contained in:
@@ -28,8 +28,9 @@ public class JsonReceiveMessageHandler implements Manager.ReceiveMessageHandler
|
||||
if (exception != null) {
|
||||
object.put("error", new JsonError(exception));
|
||||
}
|
||||
|
||||
if (envelope != null) {
|
||||
object.put("envelope", new JsonMessageEnvelope(envelope, content, m));
|
||||
object.put("envelope", new JsonMessageEnvelope(envelope, content, exception, m));
|
||||
}
|
||||
|
||||
jsonWriter.write(object);
|
||||
|
||||
Reference in New Issue
Block a user