diff options
author | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-07-22 15:40:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 15:40:06 -0500 |
commit | de05a642460fa04f6e279fa166f032e9ff94b4b0 (patch) | |
tree | e8dfd8ef089fc635b5e292613d4f63552bb6aa38 /synapse/rest/client/keys.py | |
parent | SS: Implement `$ME` support (#17469) (diff) | |
download | synapse-de05a642460fa04f6e279fa166f032e9ff94b4b0.tar.xz |
Sliding Sync: Add E2EE extension (MSC3884) (#17454)
Spec: [MSC3884](https://github.com/matrix-org/matrix-spec-proposals/pull/3884) Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
Diffstat (limited to 'synapse/rest/client/keys.py')
-rw-r--r-- | synapse/rest/client/keys.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/synapse/rest/client/keys.py b/synapse/rest/client/keys.py index 67de634eab..eddad7d5b8 100644 --- a/synapse/rest/client/keys.py +++ b/synapse/rest/client/keys.py @@ -256,9 +256,15 @@ class KeyChangesServlet(RestServlet): user_id = requester.user.to_string() - results = await self.device_handler.get_user_ids_changed(user_id, from_token) + device_list_updates = await self.device_handler.get_user_ids_changed( + user_id, from_token + ) + + response: JsonDict = {} + response["changed"] = list(device_list_updates.changed) + response["left"] = list(device_list_updates.left) - return 200, results + return 200, response class OneTimeKeyServlet(RestServlet): |