Improve output for profile key update messages

This commit is contained in:
AsamK 2022-06-18 12:11:36 +02:00
parent adce64bc21
commit abebffb2cd
3 changed files with 8 additions and 1 deletions

View file

@ -100,6 +100,7 @@ public record MessageEnvelope(
boolean isExpirationUpdate,
boolean isViewOnce,
boolean isEndSession,
boolean isProfileKeyUpdate,
boolean hasProfileKey,
Optional<Reaction> reaction,
Optional<Quote> quote,
@ -126,6 +127,7 @@ public record MessageEnvelope(
dataMessage.isExpirationUpdate(),
dataMessage.isViewOnce(),
dataMessage.isEndSession(),
dataMessage.isProfileKeyUpdate(),
dataMessage.getProfileKey().isPresent(),
dataMessage.getReaction().map(r -> Reaction.from(r, recipientResolver, addressResolver)),
dataMessage.getQuote().map(q -> Quote.from(q, recipientResolver, addressResolver, fileProvider)),