mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Add key transparency backend support.
This commit is contained in:
committed by
Greyson Parrelli
parent
26739491a5
commit
423b8c942c
@@ -120,7 +120,8 @@ class Recipient(
|
||||
private val groupRecord: Optional<GroupRecord> = Optional.empty(),
|
||||
val phoneNumberSharing: PhoneNumberSharingState = PhoneNumberSharingState.UNKNOWN,
|
||||
val nickname: ProfileName = ProfileName.EMPTY,
|
||||
val note: String? = null
|
||||
val note: String? = null,
|
||||
val keyTransparencyData: ByteArray? = null
|
||||
) {
|
||||
|
||||
/** The recipient's [ServiceId], which could be either an [ACI] or [PNI]. */
|
||||
@@ -822,7 +823,8 @@ class Recipient(
|
||||
callLinkRoomId == other.callLinkRoomId &&
|
||||
phoneNumberSharing == other.phoneNumberSharing &&
|
||||
nickname == other.nickname &&
|
||||
note == other.note
|
||||
note == other.note &&
|
||||
keyTransparencyData.contentEquals(other.keyTransparencyData)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
||||
@@ -202,7 +202,8 @@ object RecipientCreator {
|
||||
groupRecord = groupRecord,
|
||||
phoneNumberSharing = record.phoneNumberSharing,
|
||||
nickname = record.nickname,
|
||||
note = record.note
|
||||
note = record.note,
|
||||
keyTransparencyData = record.keyTransparencyData
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user