Apply new story list ordering rules.

Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
Alex Hart
2022-06-14 12:50:53 -03:00
committed by Greyson Parrelli
parent 3b07f4a8ca
commit 88a66b49ff
16 changed files with 319 additions and 77 deletions

View File

@@ -35,6 +35,15 @@ public final class DistributionListId implements DatabaseId, Parcelable {
}
}
public static @NonNull DistributionListId from(@NonNull String serializedId) {
try {
long id = Long.parseLong(serializedId);
return from(id);
} catch (NumberFormatException e) {
throw new IllegalArgumentException(e);
}
}
private DistributionListId(long id) {
this.id = id;
}