Add call log event proto updates.

This commit is contained in:
Alex Hart
2024-03-15 11:38:16 -03:00
committed by Cody Henthorne
parent 989bd662c6
commit 6f46331772
6 changed files with 48 additions and 17 deletions

View File

@@ -1221,6 +1221,18 @@ public class Recipient {
return Objects.requireNonNull(callLinkRoomId);
}
public @NonNull byte[] requireCallConversationId() {
if (isPushGroup()) {
return requireGroupId().getDecodedId();
} else if (isCallLink()) {
return requireCallLinkRoomId().encodeForProto().toByteArray();
} else if (isIndividual()) {
return requireServiceId().toByteArray();
} else {
throw new IllegalStateException("Recipient does not support conversation id");
}
}
public PhoneNumberSharingState getPhoneNumberSharing() {
return phoneNumberSharing;
}