mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-17 02:15:17 +08:00
More explicit val naming
This commit is contained in:
parent
35404b9a7f
commit
9842cac504
@ -26,7 +26,7 @@ data class MessageVerificationRequestContent(
|
||||
@Json(name = "body") override val body: String,
|
||||
@Json(name = "from_device") val fromDevice: String,
|
||||
@Json(name = "methods") val methods: List<String>,
|
||||
@Json(name = "to") val to: String,
|
||||
@Json(name = "to") val toUserId: String,
|
||||
// @Json(name = "timestamp") val timestamp: Int,
|
||||
@Json(name = "format") val format: String? = null,
|
||||
@Json(name = "formatted_body") val formattedBody: String? = null,
|
||||
|
@ -286,7 +286,7 @@ internal class LocalEchoEventFactory @Inject constructor(
|
||||
)
|
||||
}
|
||||
|
||||
fun createVerificationRequest(roomId: String, fromDevice: String, to: String, methods: List<String>): Event {
|
||||
fun createVerificationRequest(roomId: String, fromDevice: String, toUserId: String, methods: List<String>): Event {
|
||||
val localID = LocalEcho.createLocalEchoId()
|
||||
return Event(
|
||||
roomId = roomId,
|
||||
@ -297,7 +297,7 @@ internal class LocalEchoEventFactory @Inject constructor(
|
||||
content = MessageVerificationRequestContent(
|
||||
body = stringProvider.getString(R.string.key_verification_request_fallback_message, userId),
|
||||
fromDevice = fromDevice,
|
||||
to = to,
|
||||
toUserId = toUserId,
|
||||
methods = methods
|
||||
).toContent(),
|
||||
unsignedData = UnsignedData(age = null, transactionId = localID)
|
||||
|
Loading…
Reference in New Issue
Block a user