Skip to content
Snippets Groups Projects
Commit 1654d3b3 authored by Paul Evans's avatar Paul Evans
Browse files

Merge pull request #377 from matrix-org/paul/tiny-fixes

Don't complain if /make_join response lacks 'prev_state' list (SYN-517)
parents 6fed9fd6 aca6e5bf
No related branches found
No related tags found
No related merge requests found
...@@ -401,6 +401,12 @@ class FederationClient(FederationBase): ...@@ -401,6 +401,12 @@ class FederationClient(FederationBase):
pdu_dict["content"].update(content) pdu_dict["content"].update(content)
# The protoevent received over the JSON wire may not have all
# the required fields. Lets just gloss over that because
# there's some we never care about
if "prev_state" not in pdu_dict:
pdu_dict["prev_state"] = []
defer.returnValue( defer.returnValue(
(destination, self.event_from_pdu_json(pdu_dict)) (destination, self.event_from_pdu_json(pdu_dict))
) )
......
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