mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Fix output for envelope receipts
This commit is contained in:
parent
67146f9cc7
commit
ede0dfeef4
1 changed files with 3 additions and 1 deletions
|
@ -816,7 +816,9 @@ public record MessageEnvelope(
|
|||
.orNull());
|
||||
call = Optional.ofNullable(content.getCallMessage().transform(Call::from).orNull());
|
||||
} else {
|
||||
receipt = Optional.empty();
|
||||
receipt = envelope.isReceipt() ? Optional.of(new Receipt(envelope.getServerReceivedTimestamp(),
|
||||
Receipt.Type.DELIVERY,
|
||||
List.of(envelope.getTimestamp()))) : Optional.empty();
|
||||
typing = Optional.empty();
|
||||
data = Optional.empty();
|
||||
sync = Optional.empty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue