mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 09:54:00 +01:00
Set profile information when joining rooms remotely
This commit is contained in:
parent
87a30890a3
commit
1ef0365670
1 changed files with 5 additions and 0 deletions
|
@ -233,6 +233,11 @@ class RoomMemberHandler(BaseHandler):
|
|||
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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue