summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-23 15:29:27 +0100
committerErik Johnston <erik@matrix.org>2014-09-23 15:29:27 +0100
commitb99f6eb904c9614aacd3532196be410341d0640b (patch)
tree419d5235bdb05117d2b60a9487924b4180c5383e /synapse
parentAdd m.room.deletion. If an event is deleted it will be returned to clients 'p... (diff)
downloadsynapse-b99f6eb904c9614aacd3532196be410341d0640b.tar.xz
Make sure we don't persist the 'pruned' key
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 672ed6971e..46d420b632 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -206,7 +206,7 @@ class DataStore(RoomMemberStore, RoomStore,
         unrec = {
             k: v
             for k, v in event.get_full_dict().items()
-            if k not in vals.keys() and k is not "deleted"
+            if k not in vals.keys() and k not in ["deleted", "pruned"]
         }
         vals["unrecognized_keys"] = json.dumps(unrec)