diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-12-19 12:31:46 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-12-19 12:31:46 +0000 |
commit | 1e7f83b91dfdc68a9233dca5870d2511ec891bf0 (patch) | |
tree | 01c9071868ce03fdb99a52421cef796f028eb867 /synapse/handlers | |
parent | Remove unneeded federation keys from events (diff) | |
download | synapse-1e7f83b91dfdc68a9233dca5870d2511ec891bf0.tar.xz |
Set display name when joining via alias
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 4b8385c955..9644cd3d34 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -390,6 +390,11 @@ class RoomMemberHandler(BaseHandler): host = hosts[0] + # If event doesn't include a display name, add one. + yield self.distributor.fire( + "collect_presencelike_data", joinee, content + ) + content.update({"membership": Membership.JOIN}) builder = self.event_builder_factory.new({ "type": EventTypes.Member, |