fix double negative

This commit is contained in:
Matthew Hodgson 2018-05-04 02:11:22 +01:00
parent 6372dff771
commit 9f2fd29c14

View file

@ -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