mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 02:40:22 +00:00
Use user_id in email greeting if display name is null
This commit is contained in:
parent
a04a2d043c
commit
e793866398
1 changed files with 2 additions and 0 deletions
|
@ -122,6 +122,8 @@ class Mailer(object):
|
|||
user_display_name = yield self.store.get_profile_displayname(
|
||||
UserID.from_string(user_id).localpart
|
||||
)
|
||||
if user_display_name is None:
|
||||
user_display_name = user_id
|
||||
except StoreError:
|
||||
user_display_name = user_id
|
||||
|
||||
|
|
Loading…
Reference in a new issue