Fix output for envelope receipts

This commit is contained in:
AsamK 2022-01-26 21:55:23 +01:00
parent 67146f9cc7
commit ede0dfeef4

View file

@ -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();