Drop sync messages with bad GV1 lengths.
This commit is contained in:
parent
e2b6e85431
commit
4c80aac4d6
1 changed files with 2 additions and 1 deletions
|
@ -51,6 +51,7 @@ public final class GroupV1MessageProcessor {
|
|||
@NonNull SignalServiceContent content,
|
||||
@NonNull SignalServiceDataMessage message,
|
||||
boolean outgoing)
|
||||
throws BadGroupIdException
|
||||
{
|
||||
SignalServiceGroupContext signalServiceGroupContext = message.getGroupContext().get();
|
||||
Optional<SignalServiceGroup> groupV1 = signalServiceGroupContext.getGroupV1();
|
||||
|
@ -66,7 +67,7 @@ public final class GroupV1MessageProcessor {
|
|||
|
||||
GroupDatabase database = DatabaseFactory.getGroupDatabase(context);
|
||||
SignalServiceGroup group = groupV1.get();
|
||||
GroupId id = GroupId.v1orThrow(group.getGroupId());
|
||||
GroupId id = GroupId.v1(group.getGroupId());
|
||||
Optional<GroupRecord> record = database.getGroup(id);
|
||||
|
||||
if (record.isPresent() && group.getType() == Type.UPDATE) {
|
||||
|
|
Loading…
Add table
Reference in a new issue