diff options
author | Erik Johnston <erik@matrix.org> | 2015-11-12 16:19:55 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-11-12 16:19:55 +0000 |
commit | c0b3554401b821002acfc3989e57d6ac59671aa9 (patch) | |
tree | 040464e3e653531e8b2d03ffb1efb64b3dab0f9a /synapse/federation/federation_client.py | |
parent | Fix an issue with ignoring power_level changes on divergent graphs (diff) | |
download | synapse-c0b3554401b821002acfc3989e57d6ac59671aa9.tar.xz |
Fix missing profile data in federation joins
There was a regression where we stopped including profile data in initial joins for rooms joined over federation.
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index c0c0b693b8..d4f586fae7 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -357,7 +357,8 @@ class FederationClient(FederationBase): defer.returnValue(signed_auth) @defer.inlineCallbacks - def make_membership_event(self, destinations, room_id, user_id, membership): + def make_membership_event(self, destinations, room_id, user_id, membership, + content={},): """ Creates an m.room.member event, with context, without participating in the room. @@ -398,6 +399,8 @@ class FederationClient(FederationBase): logger.debug("Got response to make_%s: %s", membership, pdu_dict) + pdu_dict["content"].update(content) + defer.returnValue( (destination, self.event_from_pdu_json(pdu_dict)) ) |