mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Convert RecipientAddress to record
This commit is contained in:
parent
c3a9022bec
commit
8867a7b9ee
14 changed files with 59 additions and 91 deletions
|
@ -17,8 +17,8 @@ public record JsonReaction(
|
|||
final var emoji = reaction.emoji();
|
||||
final var address = reaction.targetAuthor();
|
||||
final var targetAuthor = address.getLegacyIdentifier();
|
||||
final var targetAuthorNumber = address.getNumber().orElse(null);
|
||||
final var targetAuthorUuid = address.getUuid().map(UUID::toString).orElse(null);
|
||||
final var targetAuthorNumber = address.number().orElse(null);
|
||||
final var targetAuthorUuid = address.uuid().map(UUID::toString).orElse(null);
|
||||
final var targetSentTimestamp = reaction.targetSentTimestamp();
|
||||
final var isRemove = reaction.isRemove();
|
||||
return new JsonReaction(emoji,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue