Add key transparency backend support.

This commit is contained in:
Michelle Tang
2026-01-30 13:17:26 -05:00
committed by Greyson Parrelli
parent 26739491a5
commit 423b8c942c
18 changed files with 355 additions and 9 deletions

View File

@@ -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 {

View File

@@ -202,7 +202,8 @@ object RecipientCreator {
groupRecord = groupRecord,
phoneNumberSharing = record.phoneNumberSharing,
nickname = record.nickname,
note = record.note
note = record.note,
keyTransparencyData = record.keyTransparencyData
)
}