Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class RustMatrixClientFactory(
passphrase = sessionData.passphrase,
slidingSyncType = ClientBuilderSlidingSync.Restored,
)
.homeserverUrl(sessionData.homeserverUrl)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!
So it seems that the application is storing the actual homeserver Url (CS baseUrl) and this is not really expected. I was looking at the other usage of homeserverUrl (to see if it could be just removed) and I see that the only other usage of homeserverUrl is here, and toSession is invoked at line 73 below.

So it is actually OK that the CS baseUrl is stored?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other usage is actually not used by the SDK. Maybe some cleanup can be done SDK side later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other usage is actually not used by the SDK. Maybe some cleanup can be done SDK side later.

This was implemented in matrix-org/matrix-rust-sdk#5874.

.username(sessionData.userId)
.use { it.build() }

Expand Down
Loading