Skip to content
Snippets Groups Projects
Unverified Commit 54e74f8b authored by Michael Telatynski's avatar Michael Telatynski Committed by GitHub
Browse files

Fix M_WRONG_ROOM_KEYS_VERSION error not including `current_version` field (#11988)

parent 7812fe9e
No related branches found
No related tags found
No related merge requests found
Fix a long-standing bug where `M_WRONG_ROOM_KEYS_VERSION` errors would not include the specced `current_version` field.
......@@ -406,6 +406,9 @@ class RoomKeysVersionError(SynapseError):
super().__init__(403, "Wrong room_keys version", Codes.WRONG_ROOM_KEYS_VERSION)
self.current_version = current_version
def error_dict(self) -> "JsonDict":
return cs_error(self.msg, self.errcode, current_version=self.current_version)
class UnsupportedRoomVersionError(SynapseError):
"""The client's request to create a room used a room version that the server does
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment