From b0168dc6336bf3f7c1b5d4ce78b39b2b9fd2e338 Mon Sep 17 00:00:00 2001 From: valere Date: Thu, 1 Dec 2022 16:08:01 +0100 Subject: [PATCH] fix compilation rust --- .../sdk/internal/crypto/verification/VerificationRequest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/verification/VerificationRequest.kt b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/verification/VerificationRequest.kt index f4e991b75c..133e7f6524 100644 --- a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/verification/VerificationRequest.kt +++ b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/verification/VerificationRequest.kt @@ -23,7 +23,6 @@ import kotlinx.coroutines.NonCancellable import kotlinx.coroutines.withContext import org.matrix.android.sdk.api.MatrixCoroutineDispatchers import org.matrix.android.sdk.api.extensions.tryOrNull -import org.matrix.android.sdk.api.session.crypto.verification.CancelCode import org.matrix.android.sdk.api.session.crypto.verification.EVerificationState import org.matrix.android.sdk.api.session.crypto.verification.PendingVerificationRequest import org.matrix.android.sdk.api.session.crypto.verification.VerificationMethod @@ -168,7 +167,7 @@ internal class VerificationRequest @AssistedInject constructor( // activeQRCode = innerVerificationRequest.startQrVerification() // } } catch (failure: Throwable) { - cancel(CancelCode.UserError) + cancel() } }