mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
SessionVerificationRequestDetails: map deviceDisplayName.
This commit is contained in:
committed by
Benoit Marty
parent
8a094cad5c
commit
b96f75db26
+2
@@ -62,6 +62,7 @@ internal fun anIncomingSessionVerificationRequest() = VerificationRequest.Incomi
|
|||||||
),
|
),
|
||||||
flowId = FlowId("1234"),
|
flowId = FlowId("1234"),
|
||||||
deviceId = DeviceId("ILAKNDNASDLK"),
|
deviceId = DeviceId("ILAKNDNASDLK"),
|
||||||
|
deviceDisplayName = "a device name",
|
||||||
firstSeenTimestamp = 0,
|
firstSeenTimestamp = 0,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -75,6 +76,7 @@ internal fun anIncomingUserVerificationRequest() = VerificationRequest.Incoming.
|
|||||||
),
|
),
|
||||||
flowId = FlowId("1234"),
|
flowId = FlowId("1234"),
|
||||||
deviceId = DeviceId("ILAKNDNASDLK"),
|
deviceId = DeviceId("ILAKNDNASDLK"),
|
||||||
|
deviceDisplayName = "a device name",
|
||||||
firstSeenTimestamp = 0,
|
firstSeenTimestamp = 0,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-1
@@ -295,11 +295,12 @@ private val anIncomingSessionVerificationRequest = VerificationRequest.Incoming.
|
|||||||
details = SessionVerificationRequestDetails(
|
details = SessionVerificationRequestDetails(
|
||||||
senderProfile = SessionVerificationRequestDetails.SenderProfile(
|
senderProfile = SessionVerificationRequestDetails.SenderProfile(
|
||||||
userId = A_USER_ID,
|
userId = A_USER_ID,
|
||||||
displayName = "a device name",
|
displayName = "a user name",
|
||||||
avatarUrl = null,
|
avatarUrl = null,
|
||||||
),
|
),
|
||||||
flowId = FlowId("flowId"),
|
flowId = FlowId("flowId"),
|
||||||
deviceId = A_DEVICE_ID,
|
deviceId = A_DEVICE_ID,
|
||||||
|
deviceDisplayName = "a device name",
|
||||||
firstSeenTimestamp = A_TIMESTAMP,
|
firstSeenTimestamp = A_TIMESTAMP,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
+1
@@ -18,6 +18,7 @@ data class SessionVerificationRequestDetails(
|
|||||||
val senderProfile: SenderProfile,
|
val senderProfile: SenderProfile,
|
||||||
val flowId: FlowId,
|
val flowId: FlowId,
|
||||||
val deviceId: DeviceId,
|
val deviceId: DeviceId,
|
||||||
|
val deviceDisplayName: String?,
|
||||||
val firstSeenTimestamp: Long,
|
val firstSeenTimestamp: Long,
|
||||||
) : Parcelable {
|
) : Parcelable {
|
||||||
@Parcelize
|
@Parcelize
|
||||||
|
|||||||
+1
@@ -19,6 +19,7 @@ fun RustSessionVerificationRequestDetails.map() = SessionVerificationRequestDeta
|
|||||||
senderProfile = senderProfile.map(),
|
senderProfile = senderProfile.map(),
|
||||||
flowId = FlowId(flowId),
|
flowId = FlowId(flowId),
|
||||||
deviceId = DeviceId(deviceId),
|
deviceId = DeviceId(deviceId),
|
||||||
|
deviceDisplayName = deviceDisplayName,
|
||||||
firstSeenTimestamp = firstSeenTimestamp.toLong(),
|
firstSeenTimestamp = firstSeenTimestamp.toLong(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user