Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #815 from matrix-org/dbkr/email_greeting_not_none
Browse files Browse the repository at this point in the history
Use user_id in email greeting if display name is null
  • Loading branch information
dbkr committed Jun 2, 2016
2 parents a04a2d0 + e793866 commit 07233a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/push/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def send_notification_mail(self, user_id, email_address, push_actions, reason):
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

Expand Down

0 comments on commit 07233a1

Please sign in to comment.