summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-16 11:10:19 +0100
committerNeil Johnson <neil@matrix.org>2018-08-16 11:10:19 +0100
commitc055c91655cbe5d4e6b36d86a00dafb02c585b6d (patch)
tree2d55ed11dc91bc71fae7adbe5b9ef5f566f66cc7 /synapse
parentMerge branch 'develop' of github.com:matrix-org/synapse into neilj/server_not... (diff)
downloadsynapse-c055c91655cbe5d4e6b36d86a00dafb02c585b6d.tar.xz
fix case where empty string state check is evaulated as False
Diffstat (limited to 'synapse')
-rw-r--r--synapse/server_notices/server_notices_manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py
index 3e57f8211a..22c819cc5b 100644
--- a/synapse/server_notices/server_notices_manager.py
+++ b/synapse/server_notices/server_notices_manager.py
@@ -76,7 +76,8 @@ class ServerNoticesManager(object):
             "sender": system_mxid,
             "content": event_content,
         }
-        if state_key:
+
+        if state_key is not None:
             event_dict['state_key'] = state_key
 
         res = yield self._event_creation_handler.create_and_send_nonmember_event(