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.
This commit is contained in:
Jorge Martin Espinosa 2025-11-18 11:48:42 +01:00 committed by GitHub
parent 36ecb440ef
commit 21ced9e105
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,6 @@ class RustMatrixClientFactory(
passphrase = sessionData.passphrase,
slidingSyncType = ClientBuilderSlidingSync.Restored,
)
.homeserverUrl(sessionData.homeserverUrl)
.username(sessionData.userId)
.use { it.build() }