mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
e63f2fafb9
commit
25e84f2f5d
1 changed files with 3 additions and 2 deletions
|
@ -33,9 +33,10 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
||||||
|
|
||||||
private void handleMessageInternal(MessageEnvelope envelope, Throwable exception) {
|
private void handleMessageInternal(MessageEnvelope envelope, Throwable exception) {
|
||||||
var source = envelope.sourceAddress();
|
var source = envelope.sourceAddress();
|
||||||
writer.println("Envelope from: {} (device: {})",
|
writer.println("Envelope from: {} (device: {}) to {}",
|
||||||
source.map(this::formatContact).orElse("unknown source"),
|
source.map(this::formatContact).orElse("unknown source"),
|
||||||
envelope.sourceDevice());
|
envelope.sourceDevice(),
|
||||||
|
m.getSelfNumber());
|
||||||
writer.println("Timestamp: {}", DateUtils.formatTimestamp(envelope.timestamp()));
|
writer.println("Timestamp: {}", DateUtils.formatTimestamp(envelope.timestamp()));
|
||||||
writer.println("Server timestamps: received: {} delivered: {}",
|
writer.println("Server timestamps: received: {} delivered: {}",
|
||||||
DateUtils.formatTimestamp(envelope.serverReceivedTimestamp()),
|
DateUtils.formatTimestamp(envelope.serverReceivedTimestamp()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue