diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-05-18 13:50:01 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-05-18 13:50:01 +0100 |
commit | 0b0033c40b29fd78384863bce932b31ebe281d95 (patch) | |
tree | 1e56a17d193b01f12c3bb5b897274f8753ed3531 /synapse/handlers/profile.py | |
parent | Make sure the notifier stream token goes forward when it is updated. Sort the... (diff) | |
parent | Merge pull request #153 from matrix-org/markjh/presence_docstring (diff) | |
download | synapse-0b0033c40b29fd78384863bce932b31ebe281d95.tar.xz |
Merge branch 'develop' into notifier_performance
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r-- | synapse/handlers/profile.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index 71ff78ab23..799faffe53 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -88,6 +88,9 @@ class ProfileHandler(BaseHandler): if target_user != auth_user: raise AuthError(400, "Cannot set another user's displayname") + if new_displayname == '': + new_displayname = None + yield self.store.set_profile_displayname( target_user.localpart, new_displayname ) |