diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-11-13 17:27:25 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-11-13 17:27:25 +0000 |
commit | aca6e5bf466735b0e9c9f9815ebf0c60332d0033 (patch) | |
tree | 9eb7c0f1e2d42580394e52f20ae2978c5a84457f /synapse | |
parent | Merge branch 'develop' into paul/tiny-fixes (diff) | |
download | synapse-aca6e5bf466735b0e9c9f9815ebf0c60332d0033.tar.xz |
Don't complain if /make_join response lacks 'prev_state' list (SYN-517)
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/federation/federation_client.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index d4f586fae7..c6a8c1249a 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -401,6 +401,12 @@ class FederationClient(FederationBase): 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( (destination, self.event_from_pdu_json(pdu_dict)) ) |