diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/IdentityRequestTokenForBindingTask.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/IdentityRequestTokenForBindingTask.kt index 7eefb0255e..520ec19d74 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/IdentityRequestTokenForBindingTask.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/IdentityRequestTokenForBindingTask.kt @@ -16,7 +16,6 @@ package im.vector.matrix.android.internal.session.identity -import im.vector.matrix.android.api.session.identity.IdentityServiceError import im.vector.matrix.android.api.session.identity.ThreePid import im.vector.matrix.android.api.session.identity.getCountryCode import im.vector.matrix.android.internal.di.UserId @@ -64,10 +63,6 @@ internal class DefaultIdentityRequestTokenForBindingTask @Inject constructor( } } - if (!tokenResponse.success) { - throw IdentityServiceError.BindingError - } - // Store client secret and sid identityServiceStore.storePendingBinding( params.threePid, diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/model/IdentityRequestTokenResponse.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/model/IdentityRequestTokenResponse.kt index 53f62a519a..cb3c257ddb 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/model/IdentityRequestTokenResponse.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/identity/model/IdentityRequestTokenResponse.kt @@ -27,11 +27,5 @@ internal data class IdentityRequestTokenResponse( * Their length must not exceed 255 characters and they must not be empty. */ @Json(name = "sid") - val sid: String, - - /** - * Not documented - */ - @Json(name = "success") - val success: Boolean + val sid: String )