- if (dataMessage.getGroupInfo().isPresent()) {
- this.groupInfo = new JsonGroupInfo(dataMessage.getGroupInfo().get());
+ if (dataMessage.getGroupContext().isPresent() && dataMessage.getGroupContext().get().getGroupV1().isPresent()) {
+ SignalServiceGroup groupInfo = dataMessage.getGroupContext().get().getGroupV1().get();
+ this.groupInfo = new JsonGroupInfo(groupInfo);