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