- envelope.getSourceAddress().getNumber().get(),
- transcript.getDestination().isPresent() ? transcript.getDestination().get().getNumber().get() : "",
- message.getGroupContext().isPresent() && message.getGroupContext().get().getGroupV1().isPresent()
- ? message.getGroupContext().get().getGroupV1().get().getGroupId() : new byte[0],
+ sender.getLegacyIdentifier(),
+ transcript.getDestination().isPresent() ? transcript.getDestination()
+ .get()
+ .getLegacyIdentifier() : "",
+ groupId != null ? groupId : new byte[0],