Merge pull request #3206 from vector-im/feature/bma/cleanup_register
RegistrationWizard.createAccount() parameters are now all optional
This commit is contained in:
commit
187d6136fd
|
@ -14,7 +14,7 @@ Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
||||||
SDK API changes ⚠️:
|
SDK API changes ⚠️:
|
||||||
-
|
- RegistrationWizard.createAccount() parameters are now all optional, following Matrix spec (#3205)
|
||||||
|
|
||||||
Build 🧱:
|
Build 🧱:
|
||||||
- Upgrade to gradle 7
|
- Upgrade to gradle 7
|
||||||
|
|
|
@ -20,7 +20,9 @@ interface RegistrationWizard {
|
||||||
|
|
||||||
suspend fun getRegistrationFlow(): RegistrationResult
|
suspend fun getRegistrationFlow(): RegistrationResult
|
||||||
|
|
||||||
suspend fun createAccount(userName: String, password: String, initialDeviceDisplayName: String?): RegistrationResult
|
suspend fun createAccount(userName: String?,
|
||||||
|
password: String?,
|
||||||
|
initialDeviceDisplayName: String?): RegistrationResult
|
||||||
|
|
||||||
suspend fun performReCaptcha(response: String): RegistrationResult
|
suspend fun performReCaptcha(response: String): RegistrationResult
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,8 @@ internal class DefaultRegistrationWizard(
|
||||||
return performRegistrationRequest(params)
|
return performRegistrationRequest(params)
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun createAccount(userName: String,
|
override suspend fun createAccount(userName: String?,
|
||||||
password: String,
|
password: String?,
|
||||||
initialDeviceDisplayName: String?): RegistrationResult {
|
initialDeviceDisplayName: String?): RegistrationResult {
|
||||||
val params = RegistrationParams(
|
val params = RegistrationParams(
|
||||||
username = userName,
|
username = userName,
|
||||||
|
|
Loading…
Reference in New Issue