From 21ced9e1058938f8a34d85459586e0c3f92d996d Mon Sep 17 00:00:00 2001 From: Jorge Martin Espinosa Date: Tue, 18 Nov 2025 11:48:42 +0100 Subject: [PATCH] Stop overriding the homeserver when restoring a `Client` (#5753) This isn't necessary and overrides the existing data previously saved by the SDK, resulting in losing data such as the `Client::server` (the discovery server URL). In turn, this caused the app to be unable to refresh the server info in some homeservers. --- .../android/libraries/matrix/impl/RustMatrixClientFactory.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt index f0b2b54b43..f9524e1870 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt @@ -71,7 +71,6 @@ class RustMatrixClientFactory( passphrase = sessionData.passphrase, slidingSyncType = ClientBuilderSlidingSync.Restored, ) - .homeserverUrl(sessionData.homeserverUrl) .username(sessionData.userId) .use { it.build() }