mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
if inviter_display_name == ""||None then default to inviter MXID
to prevent email invite from "None"
This commit is contained in:
parent
f386632800
commit
94700e55fa
@ -565,6 +565,10 @@ class RoomMemberHandler(BaseHandler):
|
||||
inviter_display_name = member_event.content.get("displayname", "")
|
||||
inviter_avatar_url = member_event.content.get("avatar_url", "")
|
||||
|
||||
# if user has no display name, default to their MXID
|
||||
if not inviter_display_name:
|
||||
inviter_display_name = user.to_string()
|
||||
|
||||
canonical_room_alias = ""
|
||||
canonical_alias_event = room_state.get((EventTypes.CanonicalAlias, ""))
|
||||
if canonical_alias_event:
|
||||
|
Loading…
Reference in New Issue
Block a user