Skip to content

Commit

Permalink
Revert "Remove the unknown insert validation."
Browse files Browse the repository at this point in the history
This reverts commit 320669c.
  • Loading branch information
greyson-signal committed Feb 14, 2023
1 parent 4145508 commit a02d2e4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ private static void validateManifestAndInserts(@NonNull SignalStorageManifest ma
throw new InsertNotPresentInFullIdSetError();
}

if (insert.isUnknown()) {
throw new UnknownInsertError();
}

if (insert.getContact().isPresent()) {
SignalContactRecord contact = insert.getContact().get();

Expand Down Expand Up @@ -169,6 +173,9 @@ private static final class InsertNotPresentInFullIdSetError extends Error {
private static final class DeletePresentInFullIdSetError extends Error {
}

private static final class UnknownInsertError extends Error {
}

private static final class MultipleAccountError extends Error {
}

Expand Down

0 comments on commit a02d2e4

Please sign in to comment.