Skip to content
Snippets Groups Projects
Unverified Commit e81fa926 authored by Shay's avatar Shay Committed by GitHub
Browse files

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: default avatarSean Quah <8349537+squahtx@users.noreply.github.com>

Co-authored-by: default avatarSean Quah <8349537+squahtx@users.noreply.github.com>
parent caa706d8
No related branches found
No related tags found
No related merge requests found
Fix a bug introduced in 1.35.0 which made it impossible to join rooms that return a `send_join` response containing floats.
\ No newline at end of file
......@@ -1310,14 +1310,17 @@ class SendJoinParser(ByteParser[SendJoinResponse]):
self._coro_state = ijson.items_coro(
_event_list_parser(room_version, self._response.state),
prefix + "state.item",
use_float=True,
)
self._coro_auth = ijson.items_coro(
_event_list_parser(room_version, self._response.auth_events),
prefix + "auth_chain.item",
use_float=True,
)
self._coro_event = ijson.kvitems_coro(
_event_parser(self._response.event_dict),
prefix + "org.matrix.msc3083.v2.event",
use_float=True,
)
def write(self, data: bytes) -> int:
......
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