Skip to content

Profiles: Allow building a sync service with support for the profiles extension.#6726

Merged
poljar merged 1 commit into
mainfrom
doug/enable-profiles-extension
Jul 8, 2026
Merged

Profiles: Allow building a sync service with support for the profiles extension.#6726
poljar merged 1 commit into
mainfrom
doug/enable-profiles-extension

Conversation

@pixlwave

@pixlwave pixlwave commented Jul 6, 2026

Copy link
Copy Markdown
Member

Follow-up to #6685, this PR adds support for building a sync service with the profiles extension enabled.

  • I've documented the public API changes in the appropriate changelog files (see Writing changelog entries).
  • This PR was made with the help of AI.

Signed-off-by:

@pixlwave pixlwave force-pushed the doug/enable-profiles-extension branch from 3ac56da to bd965ac Compare July 6, 2026 16:28
@pixlwave pixlwave marked this pull request as ready for review July 6, 2026 16:28
@pixlwave pixlwave requested a review from a team as a code owner July 6, 2026 16:28
@pixlwave pixlwave requested review from Hywan and removed request for a team July 6, 2026 16:28
Comment on lines +133 to +134
/// Required to merge the global `m.status` and `m.call` fields into the
/// room members and profiles read from the SDK.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

To be clear during review. This merge part isn't ready yet, but is being handled by #6704.

debug!("Enabling the profiles extension for the room list sliding sync");
builder = builder.with_profiles_extension(assign!(
http::request::Profiles::default(),
{ enabled: Some(true) }

@pixlwave pixlwave Jul 6, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FTR, I've opted not to include the fields filter in here for the moment – it seems worth waiting to see how much data we receive once we have a working backend to test against.

@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.92%. Comparing base (374ed78) to head (bd965ac).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/matrix-sdk-ui/src/room_list_service/mod.rs 55.55% 4 Missing ⚠️
crates/matrix-sdk-ui/src/sync_service.rs 42.85% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6726   +/-   ##
=======================================
  Coverage   89.91%   89.92%           
=======================================
  Files         398      398           
  Lines      111154   111169   +15     
  Branches   111154   111169   +15     
=======================================
+ Hits        99948    99966   +18     
+ Misses       7415     7412    -3     
  Partials     3791     3791           

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

@codspeed-hq

codspeed-hq Bot commented Jul 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 50 untouched benchmarks


Comparing doug/enable-profiles-extension (3ac56da) with main (374ed78)

Open in CodSpeed

@pixlwave pixlwave changed the title feat: Allow building a sync service with support for the profiles extension. Profiles: Allow building a sync service with support for the profiles extension. Jul 7, 2026
share_pos: bool,
connection_id: &str,
timeline_limit: u32,
profiles_extension: bool,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not terribly happy with how many arguments we now have here, but ok.

@poljar poljar merged commit 8980b4b into main Jul 8, 2026
54 checks passed
@poljar poljar deleted the doug/enable-profiles-extension branch July 8, 2026 12:11
@pixlwave

pixlwave commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

Thank you! 🎉

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.

2 participants