mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 17:24:21 -05:00
Fix M_WRONG_ROOM_KEYS_VERSION error not including current_version
field (#11988)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
7812fe9edd
commit
54e74f8bde
1
changelog.d/11988.bugfix
Normal file
1
changelog.d/11988.bugfix
Normal file
@ -0,0 +1 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user