Remove undocumented parameter

https://github.com/matrix-org/sydent/issues/195
This commit is contained in:
Benoit Marty 2020-05-09 18:42:11 +02:00
parent e411f139c8
commit 03f8b66993
2 changed files with 1 additions and 12 deletions

View File

@ -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,

View File

@ -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
)