Revert "Ensure GV1 length is exactly the length expected."

This reverts commit 8e962bf992.
This commit is contained in:
Greyson Parrelli
2020-07-22 22:45:19 -04:00
parent dadb2f9d37
commit fc4e690996
6 changed files with 18 additions and 29 deletions

View File

@@ -40,7 +40,7 @@ public abstract class GroupId {
}
public static @NonNull GroupId.V1 v1(byte[] gv1GroupIdBytes) throws BadGroupIdException {
if (gv1GroupIdBytes.length != MMS_BYTE_LENGTH) {
if (gv1GroupIdBytes.length == V2_BYTE_LENGTH) {
throw new BadGroupIdException();
}
return new GroupId.V1(gv1GroupIdBytes);