Skip to content

Support stable prefix for MSC4287 m.key_backup#6410

Open
andybalaam wants to merge 1 commit intomainfrom
andybalaam/msc4287-add-stable-prefix
Open

Support stable prefix for MSC4287 m.key_backup#6410
andybalaam wants to merge 1 commit intomainfrom
andybalaam/msc4287-add-stable-prefix

Conversation

@andybalaam
Copy link
Copy Markdown
Member

Keep the unstable prefix up-to-date for now, so clients have time to migrate.

  • I've documented the public API Changes in the appropriate CHANGELOG.md files.
  • This PR was NOT made with any AI.

@andybalaam andybalaam force-pushed the andybalaam/msc4287-add-stable-prefix branch from 1ce8c09 to 45fdbc5 Compare April 2, 2026 15:37
@andybalaam andybalaam marked this pull request as ready for review April 2, 2026 15:37
@andybalaam andybalaam requested a review from a team as a code owner April 2, 2026 15:37
@andybalaam andybalaam requested review from poljar and removed request for a team April 2, 2026 15:37
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.86%. Comparing base (a65fec3) to head (45fdbc5).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/encryption/recovery/mod.rs 72.72% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6410      +/-   ##
==========================================
- Coverage   89.87%   89.86%   -0.02%     
==========================================
  Files         378      378              
  Lines      103445   103449       +4     
  Branches   103445   103449       +4     
==========================================
- Hits        92973    92965       -8     
- Misses       6902     6913      +11     
- Partials     3570     3571       +1     

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

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 2, 2026

Merging this PR will not alter performance

✅ 50 untouched benchmarks


Comparing andybalaam/msc4287-add-stable-prefix (45fdbc5) with main (a65fec3)

Open in CodSpeed

Copy link
Copy Markdown
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Ah, thanks for speccing this and tackling it in the SDK.

The event should probably go into Ruma, looks good otherwise.

///
/// [MSC4287]: https://github.com/matrix-org/matrix-spec-proposals/pull/4287
#[derive(Clone, Debug, Default, Deserialize, Serialize, EventContent)]
#[ruma_event(type = "m.key_backup", kind = GlobalAccountData)]
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.

I think the stable type should now live in Ruma.

/// Unstable prefix form of [MSC4287].
///
/// [MSC4287]: https://github.com/matrix-org/matrix-spec-proposals/pull/4287
#[derive(Clone, Debug, Default, Deserialize, Serialize, EventContent)]
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.

We can keep this one around for a while.

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