summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-07 18:08:38 +0100
committerErik Johnston <erik@matrix.org>2015-04-07 18:08:38 +0100
commit38928c6609742d5ca33781f0cb88afab8f664225 (patch)
tree5544bb962e766daa62b5f0f4f24a0870f25d9996 /synapse
parentMerge branch 'develop' of github.com:matrix-org/synapse into mysql (diff)
parentMake demo script use --enable-registration (diff)
downloadsynapse-38928c6609742d5ca33781f0cb88afab8f664225.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into mysql
Diffstat (limited to 'synapse')
-rw-r--r--synapse/api/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 64f605b962..18f3d117b3 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -486,7 +486,7 @@ class Auth(object):
             send_level = send_level_event.content.get("events", {}).get(
                 event.type
             )
-            if not send_level:
+            if send_level is None:
                 if hasattr(event, "state_key"):
                     send_level = send_level_event.content.get(
                         "state_default", 50