Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Clarify comment on key uploads over replication #16016

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.d/16016.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Clarify comment on the keys/upload over replication enpoint.

4 changes: 2 additions & 2 deletions synapse/replication/http/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ class ReplicationUploadKeysForUserRestServlet(ReplicationEndpoint):
Calls to e2e_keys_handler.upload_keys_for_user(user_id, device_id, keys) on
the main process to accomplish this.

Defined in https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysupload
Request format(borrowed and expanded from KeyUploadServlet):
Request format for this endpoint (borrowed and expanded from KeyUploadServlet):

POST /_synapse/replication/upload_keys_for_user

Expand All @@ -117,6 +116,7 @@ class ReplicationUploadKeysForUserRestServlet(ReplicationEndpoint):
"device_id": "<device_id>",
"keys": {
....this part can be found in KeyUploadServlet in rest/client/keys.py....
or as defined in https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysupload
}
}

Expand Down