mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
parent
87105272d1
commit
a5187d4481
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ public record MessageEnvelope(
|
||||||
dataMessage.isProfileKeyUpdate(),
|
dataMessage.isProfileKeyUpdate(),
|
||||||
dataMessage.getProfileKey().isPresent(),
|
dataMessage.getProfileKey().isPresent(),
|
||||||
dataMessage.getReaction().map(r -> Reaction.from(r, recipientResolver, addressResolver)),
|
dataMessage.getReaction().map(r -> Reaction.from(r, recipientResolver, addressResolver)),
|
||||||
dataMessage.getQuote().map(q -> Quote.from(q, recipientResolver, addressResolver, fileProvider)),
|
dataMessage.getQuote()
|
||||||
|
.filter(q -> q.getAuthor() != null && q.getAuthor().isValid())
|
||||||
|
.map(q -> Quote.from(q, recipientResolver, addressResolver, fileProvider)),
|
||||||
dataMessage.getPayment().map(p -> p.getPaymentNotification().isPresent() ? Payment.from(p) : null),
|
dataMessage.getPayment().map(p -> p.getPaymentNotification().isPresent() ? Payment.from(p) : null),
|
||||||
dataMessage.getAttachments()
|
dataMessage.getAttachments()
|
||||||
.map(a -> a.stream().map(as -> Attachment.from(as, fileProvider)).toList())
|
.map(a -> a.stream().map(as -> Attachment.from(as, fileProvider)).toList())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue