Include ephemeral flag in individual messages

This commit is contained in:
Jon Chambers
2025-01-31 12:50:14 -05:00
committed by Jon Chambers
parent c84d96abee
commit 70ce6eff9e
3 changed files with 7 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ public record IncomingMessage(int type, byte destinationDeviceId, int destinatio
@Nullable Byte sourceDeviceId,
final long timestamp,
final boolean story,
final boolean ephemeral,
final boolean urgent,
@Nullable byte[] reportSpamToken) {
@@ -35,6 +36,7 @@ public record IncomingMessage(int type, byte destinationDeviceId, int destinatio
.setServerTimestamp(System.currentTimeMillis())
.setDestinationServiceId(destinationIdentifier.toServiceIdentifierString())
.setStory(story)
.setEphemeral(ephemeral)
.setUrgent(urgent);
if (sourceAccount != null && sourceDeviceId != null) {