-
Notifications
You must be signed in to change notification settings - Fork 436
Remove MSC2697 (legacy dehydrated devices) #19346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| if hs.config.experimental.msc2697_enabled: | ||
| DehydratedDeviceServlet(hs).register(http_server) | ||
| ClaimDehydratedDeviceServlet(hs).register(http_server) | ||
| if hs.config.experimental.msc3814_enabled: | ||
| DehydratedDeviceV2Servlet(hs).register(http_server) | ||
| DehydratedDeviceEventsServlet(hs).register(http_server) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| result = await self.device_handler.rehydrate_device( | ||
| requester.user.to_string(), | ||
| self.auth.get_access_token_from_request(request), | ||
| submission.device_id, | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rehydrate_device(...) usage is being removed. And it appears like the only usage so we can remove rehydrate_device(...) itself.
And it looks like we can also remove set_device_for_access_token(...), set_device_for_refresh_token(...) as a result as well.
| self.store = hs.get_datastores().main | ||
| return hs | ||
|
|
||
| def test_dehydrate_and_rehydrate_device(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you identify this test as one needing to be removed?
It seems correct but I don't really see any MSC2697 indications beyond rehydrate_device(...).
Perhaps looking at the PR that introduced everything 🤔 matrix-org/synapse#8380
| @@ -0,0 +1 @@ | |||
| MSC2697 (Dehydrated devices) has been removed, as the MSC is closed. Developers should migrate to MSC3814. No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the changes to synapse/rest/client/v2_alpha/keys.py from https://github.com/matrix-org/synapse/pull/8380/changes necessary anymore?
I don't see any notes about /keys/upload in MSC3814 like I do for MSC2697
Fixes #19347
This deprecates MSC2697 which has been closed since May 2024. As per #19347 this seems to be a thing we can just rip out.
Dev notes
Originally introduced by matrix-org/synapse#8380
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.