summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-15 17:31:36 +0000
committerErik Johnston <erik@matrix.org>2014-12-15 17:31:36 +0000
commitf280929a12314cfdb680881e2458bb047b7346ce (patch)
treef9ff59f05b23f2272cdaec4b8eeac5b81c8c880e /synapse/storage/__init__.py
parentUser.is_mine is no longer a thing. Use hs.is_mine instead. (diff)
downloadsynapse-f280929a12314cfdb680881e2458bb047b7346ce.tar.xz
Use frozenutils
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index d0ea304b3d..e75eaa92d5 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -21,7 +21,6 @@ from synapse.api.events.room import (
 )
 
 from synapse.util.logutils import log_function
-from synapse.util.frozenutils import FrozenEncoder
 
 from .directory import DirectoryStore
 from .feedback import FeedbackStore
@@ -177,7 +176,7 @@ class DataStore(RoomMemberStore, RoomStore,
             "event_id": event.event_id,
             "type": event.type,
             "room_id": event.room_id,
-            "content": json.dumps(event.content, cls=FrozenEncoder),
+            "content": json.dumps(event.get_dict()["content"]),
             "processed": True,
             "outlier": outlier,
             "depth": event.depth,