mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 19:04:54 +01:00
Merge pull request #3707 from poljar/poljar/fix/verification-transaction-id-mixup
crypto: Don't use the transaction ID of the verification for the request
This commit is contained in:
commit
98720ce4a5
1
changelog.d/3589.bugfix
Normal file
1
changelog.d/3589.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Don't use the transaction ID of the verification for the request
|
@ -68,7 +68,7 @@ internal class VerificationTransportToDevice(
|
|||||||
contentMap.setObject(otherUserId, it, keyReq)
|
contentMap.setObject(otherUserId, it, keyReq)
|
||||||
}
|
}
|
||||||
sendToDeviceTask
|
sendToDeviceTask
|
||||||
.configureWith(SendToDeviceTask.Params(MessageType.MSGTYPE_VERIFICATION_REQUEST, contentMap, localId)) {
|
.configureWith(SendToDeviceTask.Params(MessageType.MSGTYPE_VERIFICATION_REQUEST, contentMap)) {
|
||||||
this.callback = object : MatrixCallback<Unit> {
|
this.callback = object : MatrixCallback<Unit> {
|
||||||
override fun onSuccess(data: Unit) {
|
override fun onSuccess(data: Unit) {
|
||||||
Timber.v("## verification [$tx.transactionId] send toDevice request success")
|
Timber.v("## verification [$tx.transactionId] send toDevice request success")
|
||||||
@ -124,7 +124,7 @@ internal class VerificationTransportToDevice(
|
|||||||
contentMap.setObject(tx.otherUserId, tx.otherDeviceId, toSendToDeviceObject)
|
contentMap.setObject(tx.otherUserId, tx.otherDeviceId, toSendToDeviceObject)
|
||||||
|
|
||||||
sendToDeviceTask
|
sendToDeviceTask
|
||||||
.configureWith(SendToDeviceTask.Params(type, contentMap, tx.transactionId)) {
|
.configureWith(SendToDeviceTask.Params(type, contentMap)) {
|
||||||
this.callback = object : MatrixCallback<Unit> {
|
this.callback = object : MatrixCallback<Unit> {
|
||||||
override fun onSuccess(data: Unit) {
|
override fun onSuccess(data: Unit) {
|
||||||
Timber.v("## SAS verification [$tx.transactionId] toDevice type '$type' success.")
|
Timber.v("## SAS verification [$tx.transactionId] toDevice type '$type' success.")
|
||||||
@ -155,7 +155,7 @@ internal class VerificationTransportToDevice(
|
|||||||
val contentMap = MXUsersDevicesMap<Any>()
|
val contentMap = MXUsersDevicesMap<Any>()
|
||||||
contentMap.setObject(otherUserId, otherUserDeviceId, cancelMessage)
|
contentMap.setObject(otherUserId, otherUserDeviceId, cancelMessage)
|
||||||
sendToDeviceTask
|
sendToDeviceTask
|
||||||
.configureWith(SendToDeviceTask.Params(EventType.KEY_VERIFICATION_DONE, contentMap, transactionId)) {
|
.configureWith(SendToDeviceTask.Params(EventType.KEY_VERIFICATION_DONE, contentMap)) {
|
||||||
this.callback = object : MatrixCallback<Unit> {
|
this.callback = object : MatrixCallback<Unit> {
|
||||||
override fun onSuccess(data: Unit) {
|
override fun onSuccess(data: Unit) {
|
||||||
onDone?.invoke()
|
onDone?.invoke()
|
||||||
@ -176,7 +176,7 @@ internal class VerificationTransportToDevice(
|
|||||||
val contentMap = MXUsersDevicesMap<Any>()
|
val contentMap = MXUsersDevicesMap<Any>()
|
||||||
contentMap.setObject(otherUserId, otherUserDeviceId, cancelMessage)
|
contentMap.setObject(otherUserId, otherUserDeviceId, cancelMessage)
|
||||||
sendToDeviceTask
|
sendToDeviceTask
|
||||||
.configureWith(SendToDeviceTask.Params(EventType.KEY_VERIFICATION_CANCEL, contentMap, transactionId)) {
|
.configureWith(SendToDeviceTask.Params(EventType.KEY_VERIFICATION_CANCEL, contentMap)) {
|
||||||
this.callback = object : MatrixCallback<Unit> {
|
this.callback = object : MatrixCallback<Unit> {
|
||||||
override fun onSuccess(data: Unit) {
|
override fun onSuccess(data: Unit) {
|
||||||
Timber.v("## SAS verification [$transactionId] canceled for reason ${code.value}")
|
Timber.v("## SAS verification [$transactionId] canceled for reason ${code.value}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user