mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Apply new story list ordering rules.
Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
committed by
Greyson Parrelli
parent
3b07f4a8ca
commit
88a66b49ff
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user