mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
RegistrationWizard.createAccount() parameters are now all optional, following Matrix spec (#3205)
This commit is contained in:
parent
19427fbfec
commit
f8be814079
@ -14,7 +14,7 @@ Translations 🗣:
|
||||
-
|
||||
|
||||
SDK API changes ⚠️:
|
||||
-
|
||||
- RegistrationWizard.createAccount() parameters are now all optional, following Matrix spec (#3205)
|
||||
|
||||
Build 🧱:
|
||||
- Upgrade to gradle 7
|
||||
|
@ -20,7 +20,9 @@ interface RegistrationWizard {
|
||||
|
||||
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
|
||||
|
||||
|
@ -66,8 +66,8 @@ internal class DefaultRegistrationWizard(
|
||||
return performRegistrationRequest(params)
|
||||
}
|
||||
|
||||
override suspend fun createAccount(userName: String,
|
||||
password: String,
|
||||
override suspend fun createAccount(userName: String?,
|
||||
password: String?,
|
||||
initialDeviceDisplayName: String?): RegistrationResult {
|
||||
val params = RegistrationParams(
|
||||
username = userName,
|
||||
|
Loading…
Reference in New Issue
Block a user