Skip to content
Snippets Groups Projects
Commit 1e8b7341 authored by Taras's avatar Taras
Browse files

Remove unused registration Swiclops method

parent 362055c3
No related branches found
No related tags found
No related merge requests found
...@@ -129,9 +129,4 @@ interface RegistrationWizard { ...@@ -129,9 +129,4 @@ interface RegistrationWizard {
//Added to support few registration flows //Added to support few registration flows
suspend fun getAllRegistrationFlows(): List<List<Stage>> suspend fun getAllRegistrationFlows(): List<List<Stage>>
//Added to support custom Swiclops registration
suspend fun registrationSwiclops(
authParams: JsonDict,
userName: String?,
initialDeviceDisplayName: String?): RegistrationResult
} }
\ No newline at end of file
...@@ -295,22 +295,4 @@ internal class DefaultRegistrationWizard( ...@@ -295,22 +295,4 @@ internal class DefaultRegistrationWizard(
} }
return emptyList() return emptyList()
} }
override suspend fun registrationSwiclops(
authParams: JsonDict,
userName: String?,
initialDeviceDisplayName: String?): RegistrationResult {
val safeSession = pendingSessionData.currentSession
?: throw IllegalStateException("developer error, call createAccount() method first")
val mutableParams = authParams.toMutableMap()
mutableParams["session"] = safeSession
val params = RegistrationCustomParams(
auth = mutableParams,
username = userName,
initialDeviceDisplayName = initialDeviceDisplayName
)
return performRegistrationOtherRequest(LoginType.CUSTOM, params)
}
} }
\ No newline at end of file
...@@ -27,13 +27,5 @@ import org.matrix.android.sdk.api.util.JsonDict ...@@ -27,13 +27,5 @@ import org.matrix.android.sdk.api.util.JsonDict
internal data class RegistrationCustomParams( internal data class RegistrationCustomParams(
// authentication parameters // authentication parameters
@Json(name = "auth") @Json(name = "auth")
val auth: JsonDict? = null, val auth: JsonDict? = null
// the account username
@Json(name = "username")
val username: String? = null,
// device name
@Json(name = "initial_device_display_name")
val initialDeviceDisplayName: String? = null,
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment