mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Add use_float=true
to ijson calls in Synapse (#11217)
* add use_float=true to ijson calls * lints * add changelog * Update changelog.d/11217.bugfix Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
This commit is contained in:
parent
caa706d825
commit
e81fa92648
1
changelog.d/11217.bugfix
Normal file
1
changelog.d/11217.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix a bug introduced in 1.35.0 which made it impossible to join rooms that return a `send_join` response containing floats.
|
@ -1310,14 +1310,17 @@ class SendJoinParser(ByteParser[SendJoinResponse]):
|
|||||||
self._coro_state = ijson.items_coro(
|
self._coro_state = ijson.items_coro(
|
||||||
_event_list_parser(room_version, self._response.state),
|
_event_list_parser(room_version, self._response.state),
|
||||||
prefix + "state.item",
|
prefix + "state.item",
|
||||||
|
use_float=True,
|
||||||
)
|
)
|
||||||
self._coro_auth = ijson.items_coro(
|
self._coro_auth = ijson.items_coro(
|
||||||
_event_list_parser(room_version, self._response.auth_events),
|
_event_list_parser(room_version, self._response.auth_events),
|
||||||
prefix + "auth_chain.item",
|
prefix + "auth_chain.item",
|
||||||
|
use_float=True,
|
||||||
)
|
)
|
||||||
self._coro_event = ijson.kvitems_coro(
|
self._coro_event = ijson.kvitems_coro(
|
||||||
_event_parser(self._response.event_dict),
|
_event_parser(self._response.event_dict),
|
||||||
prefix + "org.matrix.msc3083.v2.event",
|
prefix + "org.matrix.msc3083.v2.event",
|
||||||
|
use_float=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
def write(self, data: bytes) -> int:
|
def write(self, data: bytes) -> int:
|
||||||
|
Loading…
Reference in New Issue
Block a user