SessionVerificationRequestDetails: map deviceDisplayName.
This commit is contained in:
parent
8a094cad5c
commit
b96f75db26
4 changed files with 6 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ internal fun anIncomingSessionVerificationRequest() = VerificationRequest.Incomi
|
|||
),
|
||||
flowId = FlowId("1234"),
|
||||
deviceId = DeviceId("ILAKNDNASDLK"),
|
||||
deviceDisplayName = "a device name",
|
||||
firstSeenTimestamp = 0,
|
||||
)
|
||||
)
|
||||
|
|
@ -75,6 +76,7 @@ internal fun anIncomingUserVerificationRequest() = VerificationRequest.Incoming.
|
|||
),
|
||||
flowId = FlowId("1234"),
|
||||
deviceId = DeviceId("ILAKNDNASDLK"),
|
||||
deviceDisplayName = "a device name",
|
||||
firstSeenTimestamp = 0,
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -295,11 +295,12 @@ private val anIncomingSessionVerificationRequest = VerificationRequest.Incoming.
|
|||
details = SessionVerificationRequestDetails(
|
||||
senderProfile = SessionVerificationRequestDetails.SenderProfile(
|
||||
userId = A_USER_ID,
|
||||
displayName = "a device name",
|
||||
displayName = "a user name",
|
||||
avatarUrl = null,
|
||||
),
|
||||
flowId = FlowId("flowId"),
|
||||
deviceId = A_DEVICE_ID,
|
||||
deviceDisplayName = "a device name",
|
||||
firstSeenTimestamp = A_TIMESTAMP,
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ data class SessionVerificationRequestDetails(
|
|||
val senderProfile: SenderProfile,
|
||||
val flowId: FlowId,
|
||||
val deviceId: DeviceId,
|
||||
val deviceDisplayName: String?,
|
||||
val firstSeenTimestamp: Long,
|
||||
) : Parcelable {
|
||||
@Parcelize
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ fun RustSessionVerificationRequestDetails.map() = SessionVerificationRequestDeta
|
|||
senderProfile = senderProfile.map(),
|
||||
flowId = FlowId(flowId),
|
||||
deviceId = DeviceId(deviceId),
|
||||
deviceDisplayName = deviceDisplayName,
|
||||
firstSeenTimestamp = firstSeenTimestamp.toLong(),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue