- this.destination = transcriptMessage.getDestination()
- .transform(SignalServiceAddress::getLegacyIdentifier)
- .orNull();
+ if (transcriptMessage.getDestination().isPresent()) {
+ final var address = transcriptMessage.getDestination().get();
+ this.destination = getLegacyIdentifier(address);
+ this.destinationNumber = address.getNumber().orNull();
+ this.destinationUuid = address.getUuid().transform(UUID::toString).orNull();
+ } else {
+ this.destination = null;
+ this.destinationNumber = null;
+ this.destinationUuid = null;
+ }