mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-25 08:49:26 -05:00
Merge pull request #703 from matrix-org/erikj/member
Set profile information when joining rooms remotely
This commit is contained in:
commit
8495b6d365
@ -233,6 +233,11 @@ class RoomMemberHandler(BaseHandler):
|
|||||||
remote_room_hosts.append(inviter.domain)
|
remote_room_hosts.append(inviter.domain)
|
||||||
|
|
||||||
content = {"membership": Membership.JOIN}
|
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:
|
if requester.is_guest:
|
||||||
content["kind"] = "guest"
|
content["kind"] = "guest"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user