mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 05:30:07 +00:00
Set display name when joining via alias
This commit is contained in:
parent
5dbe820e9a
commit
1e7f83b91d
1 changed files with 5 additions and 0 deletions
|
@ -390,6 +390,11 @@ class RoomMemberHandler(BaseHandler):
|
||||||
|
|
||||||
host = hosts[0]
|
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})
|
content.update({"membership": Membership.JOIN})
|
||||||
builder = self.event_builder_factory.new({
|
builder = self.event_builder_factory.new({
|
||||||
"type": EventTypes.Member,
|
"type": EventTypes.Member,
|
||||||
|
|
Loading…
Reference in a new issue