Skip to content

Conversation

@jmartinesp
Copy link
Contributor

Changes:

  • Add some docs to discourage using the ClientBuilder methods that modify the server or homeserver URLs when restoring an existing session.

  • Removes the unused ffi::Session::homeserver_url field, since it can lead to clients believing that modifying that value may have an effect in the SDK behaviour.

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@jmartinesp jmartinesp requested a review from a team as a code owner November 18, 2025 08:40
@jmartinesp jmartinesp requested review from andybalaam and removed request for a team November 18, 2025 08:40
@codecov
Copy link

codecov bot commented Nov 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.61%. Comparing base (9ab886f) to head (b8f5642).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5874      +/-   ##
==========================================
+ Coverage   88.59%   88.61%   +0.01%     
==========================================
  Files         363      363              
  Lines      102888   102888              
  Branches   102888   102888              
==========================================
+ Hits        91153    91171      +18     
+ Misses       7496     7475      -21     
- Partials     4239     4242       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 18, 2025

CodSpeed Performance Report

Merging #5874 will not alter performance

Comparing refactor/safer-client-builder (b8f5642) with main (5d396e4)

Summary

✅ 50 untouched

@andybalaam
Copy link
Member

Looks like we need a complement-crypto update to go with this?

https://github.com/matrix-org/matrix-rust-sdk/actions/runs/19459574501/job/55680392867?pr=5874

Error: internal/api/rust/rust.go:119:4: unknown field HomeserverUrl in struct literal of type matrix_sdk_ffi.Session

@jmartinesp
Copy link
Contributor Author

Looks like we need a complement-crypto update to go with this?

matrix-org/matrix-rust-sdk/actions/runs/19459574501/job/55680392867?pr=5874

Error: internal/api/rust/rust.go:119:4: unknown field HomeserverUrl in struct literal of type matrix_sdk_ffi.Session

Yes, I didn't realise this would affect complement-crypto.

@jmartinesp
Copy link
Contributor Author

Added CC PR here and retrying the bindings test.

@jmartinesp
Copy link
Contributor Author

@andybalaam it's working now!

@jmartinesp jmartinesp merged commit 4eb3cc9 into main Nov 18, 2025
65 of 67 checks passed
@jmartinesp jmartinesp deleted the refactor/safer-client-builder branch November 18, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants