kopia lustrzana https://github.com/ryukoposting/Signal-Android
26 wiersze
766 B
Kotlin
26 wiersze
766 B
Kotlin
package org.thoughtcrime.securesms.database.model
|
|
|
|
import org.signal.libsignal.protocol.IdentityKey
|
|
import org.thoughtcrime.securesms.database.IdentityDatabase
|
|
import org.thoughtcrime.securesms.recipients.RecipientId
|
|
|
|
data class IdentityStoreRecord(
|
|
val addressName: String,
|
|
val identityKey: IdentityKey,
|
|
val verifiedStatus: IdentityDatabase.VerifiedStatus,
|
|
val firstUse: Boolean,
|
|
val timestamp: Long,
|
|
val nonblockingApproval: Boolean
|
|
) {
|
|
fun toIdentityRecord(recipientId: RecipientId): IdentityRecord {
|
|
return IdentityRecord(
|
|
recipientId = recipientId,
|
|
identityKey = identityKey,
|
|
verifiedStatus = verifiedStatus,
|
|
firstUse = firstUse,
|
|
timestamp = timestamp,
|
|
nonblockingApproval = nonblockingApproval
|
|
)
|
|
}
|
|
}
|