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:
parent
2b5c94cf9a
commit
a0a3a30aa3
1 changed files with 0 additions and 1 deletions
|
|
@ -71,7 +71,6 @@ class RustMatrixClientFactory(
|
||||||
passphrase = sessionData.passphrase,
|
passphrase = sessionData.passphrase,
|
||||||
slidingSyncType = ClientBuilderSlidingSync.Restored,
|
slidingSyncType = ClientBuilderSlidingSync.Restored,
|
||||||
)
|
)
|
||||||
.homeserverUrl(sessionData.homeserverUrl)
|
|
||||||
.username(sessionData.userId)
|
.username(sessionData.userId)
|
||||||
.use { it.build() }
|
.use { it.build() }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue