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

Commit

Permalink
Clarify comment on key uploads over replication (#16016)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jul 27, 2023
1 parent a719b70 commit 68b2611
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 68b2611

Please sign in to comment.