diff options
author | Neil Johnson <neil@matrix.org> | 2018-08-16 11:10:19 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-08-16 11:10:19 +0100 |
commit | c055c91655cbe5d4e6b36d86a00dafb02c585b6d (patch) | |
tree | 2d55ed11dc91bc71fae7adbe5b9ef5f566f66cc7 | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into neilj/server_not... (diff) | |
download | synapse-c055c91655cbe5d4e6b36d86a00dafb02c585b6d.tar.xz |
fix case where empty string state check is evaulated as False
-rw-r--r-- | synapse/server_notices/server_notices_manager.py | 3 |
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( |