Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Set profile information when joining rooms remotely
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Apr 7, 2016
1 parent 87a3089 commit 1ef0365
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ def update_membership(
remote_room_hosts.append(inviter.domain)

content = {"membership": Membership.JOIN}

profile = self.hs.get_handlers().profile_handler
content["displayname"] = yield profile.get_displayname(target)
content["avatar_url"] = yield profile.get_avatar_url(target)

if requester.is_guest:
content["kind"] = "guest"

Expand Down

0 comments on commit 1ef0365

Please sign in to comment.