mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Extend error information in json output for received messages from untrusted identity
Fixes #91
This commit is contained in:
parent
4f67ac674b
commit
9a9dd3b217
3 changed files with 18 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue