summary refs log tree commit diff
path: root/synapse/handlers/profile.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-18 13:50:01 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-18 13:50:01 +0100
commit0b0033c40b29fd78384863bce932b31ebe281d95 (patch)
tree1e56a17d193b01f12c3bb5b897274f8753ed3531 /synapse/handlers/profile.py
parentMake sure the notifier stream token goes forward when it is updated. Sort the... (diff)
parentMerge pull request #153 from matrix-org/markjh/presence_docstring (diff)
downloadsynapse-0b0033c40b29fd78384863bce932b31ebe281d95.tar.xz
Merge branch 'develop' into notifier_performance
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r--synapse/handlers/profile.py3
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 )