Add receive support for new call log event data.

This commit is contained in:
Alex Hart
2024-03-18 09:29:53 -03:00
committed by Cody Henthorne
parent 1ce1e30d32
commit 7a69df42a7
2 changed files with 39 additions and 8 deletions

View File

@@ -118,6 +118,14 @@ public abstract class GroupId implements DatabaseId {
}
}
public static GroupId.Push pushOrNull(byte[] bytes) {
try {
return GroupId.push(bytes);
} catch (BadGroupIdException e) {
return null;
}
}
public static @NonNull GroupId parseOrThrow(@NonNull String encodedGroupId) {
try {
return parse(encodedGroupId);