diff --git a/CHANGES.md b/CHANGES.md index 2c6ba9d009..7d2bd74c04 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,6 +19,7 @@ Bugfix 🐛: - Fix navigation bar icon contrast on API in [21,27[ (#1342) - Fix status bar icon contrast on API in [21,23[ - Wrong /query request (#1444) + - Make Credentials.homeServer optional because it is deprecated (#1443) Translations 🗣: - diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/data/Credentials.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/data/Credentials.kt index d88cd5e74d..d50ed2f46e 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/data/Credentials.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/data/Credentials.kt @@ -45,7 +45,7 @@ data class Credentials( * @Deprecated. Clients should extract the server_name from user_id (by splitting at the first colon) * if they require it. Note also that homeserver is not spelt this way. */ - @Json(name = "home_server") val homeServer: String, + @Json(name = "home_server") val homeServer: String?, /** * ID of the logged-in device. Will be the same as the corresponding parameter in the request, if one was specified. */ diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/widgets/WidgetsAPI.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/widgets/WidgetsAPI.kt index 922234a0b1..f798e7e25b 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/widgets/WidgetsAPI.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/widgets/WidgetsAPI.kt @@ -27,7 +27,7 @@ internal interface WidgetsAPI { /** * register to the server * - * @param requestOpenIdTokenResponse the body content (Ref: https://github.com/matrix-org/matrix-doc/pull/1961) + * @param body the body content (Ref: https://github.com/matrix-org/matrix-doc/pull/1961) */ @POST("register") fun register(@Body body: RequestOpenIdTokenResponse, @Query("v") version: String?): Call