diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index e308fcbb4..523cb6753 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -170,7 +170,7 @@ class RegistrationHandler(BaseHandler): admin=admin, ) - if display_name is not None: + if display_name is None: display_name = ( # If the user was a guest then they already have a profile None if was_guest else user.localpart