diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-10-18 10:11:40 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-10-18 10:11:40 +0100 |
commit | 80003dfcd503a72cb4da515b17c3765faccc2ce6 (patch) | |
tree | 448fc279a9278566283721bb6a0c86f17efdbd36 /synapse/handlers/e2e_room_keys.py | |
parent | changelog (diff) | |
parent | Remove dead changelog file (diff) | |
download | synapse-80003dfcd503a72cb4da515b17c3765faccc2ce6.tar.xz |
Merge remote-tracking branch 'origin/develop' into rav/event_auth/1
Diffstat (limited to 'synapse/handlers/e2e_room_keys.py')
-rw-r--r-- | synapse/handlers/e2e_room_keys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/e2e_room_keys.py b/synapse/handlers/e2e_room_keys.py index a9d80f708c..0cea445f0d 100644 --- a/synapse/handlers/e2e_room_keys.py +++ b/synapse/handlers/e2e_room_keys.py @@ -352,8 +352,8 @@ class E2eRoomKeysHandler(object): A deferred of an empty dict. """ if "version" not in version_info: - raise SynapseError(400, "Missing version in body", Codes.MISSING_PARAM) - if version_info["version"] != version: + version_info["version"] = version + elif version_info["version"] != version: raise SynapseError( 400, "Version in body does not match", Codes.INVALID_PARAM ) |