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

Commit

Permalink
Merge pull request #703 from matrix-org/erikj/member
Browse files Browse the repository at this point in the history
Set profile information when joining rooms remotely
  • Loading branch information
erikjohnston committed Apr 7, 2016
2 parents 87a3089 + 1ef0365 commit 8495b6d
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 8495b6d

Please sign in to comment.