mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 10:55:09 +03:00
fix double negative
This commit is contained in:
parent
6372dff771
commit
9f2fd29c14
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue