mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Print more information for call messages
This commit is contained in:
parent
0d0978011d
commit
e83bfb9e03
1 changed files with 10 additions and 1 deletions
|
@ -235,6 +235,13 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
final var deviceId = callMessage.getDestinationDeviceId().get();
|
||||
writer.println("Destination device id: {}", deviceId);
|
||||
}
|
||||
if (callMessage.getGroupId().isPresent()) {
|
||||
final var groupId = GroupId.unknownVersion(callMessage.getGroupId().get());
|
||||
writer.println("Destination group id: {}", groupId);
|
||||
}
|
||||
if (callMessage.getTimestamp().isPresent()) {
|
||||
writer.println("Timestamp: {}", DateUtils.formatTimestamp(callMessage.getTimestamp().get()));
|
||||
}
|
||||
if (callMessage.getAnswerMessage().isPresent()) {
|
||||
var answerMessage = callMessage.getAnswerMessage().get();
|
||||
writer.println("Answer message: {}, sdp: {})", answerMessage.getId(), answerMessage.getSdp());
|
||||
|
@ -260,7 +267,9 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
}
|
||||
if (callMessage.getOpaqueMessage().isPresent()) {
|
||||
final var opaqueMessage = callMessage.getOpaqueMessage().get();
|
||||
writer.println("Opaque message: size {}", opaqueMessage.getOpaque().length);
|
||||
writer.println("Opaque message: size {}, urgency: {}",
|
||||
opaqueMessage.getOpaque().length,
|
||||
opaqueMessage.getUrgency().name());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue