mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:56:04 -04:00
make version optional in body of e2e backup version update
to agree with latest version of the MSC
This commit is contained in:
parent
def5413480
commit
4535a07f4a
3 changed files with 34 additions and 19 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue