mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-29 05:04:54 +01:00
Add call log event proto updates.
This commit is contained in:
committed by
Cody Henthorne
parent
989bd662c6
commit
6f46331772
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user