summary refs log tree commit diff
path: root/synapse/api/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-25 16:49:02 +0100
committerErik Johnston <erik@matrix.org>2014-09-25 16:49:02 +0100
commit69ddec65895d33a25dbaa5991462e32442dbe6e5 (patch)
treeb64eea9930ba9ec3c88658ae63dd19f288cdc583 /synapse/api/events
parentRename redaction test case to something helpful (diff)
downloadsynapse-69ddec65895d33a25dbaa5991462e32442dbe6e5.tar.xz
Don't strip of False values from events when serializing
Diffstat (limited to 'synapse/api/events')
-rw-r--r--synapse/api/events/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/events/__init__.py b/synapse/api/events/__init__.py
index 0ceb703c74..db6dff5762 100644
--- a/synapse/api/events/__init__.py
+++ b/synapse/api/events/__init__.py
@@ -22,7 +22,7 @@ def serialize_event(hs, e):
     if not isinstance(e, SynapseEvent):
         return e
 
-    d = {k: v for k, v in e.get_dict().items() if v is not None or v is not False}
+    d = {k: v for k, v in e.get_dict().items() if v is not None}
     if "age_ts" in d:
         d["age"] = int(hs.get_clock().time_msec()) - d["age_ts"]
         del d["age_ts"]