diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-15 17:31:36 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-15 17:31:36 +0000 |
commit | f280929a12314cfdb680881e2458bb047b7346ce (patch) | |
tree | f9ff59f05b23f2272cdaec4b8eeac5b81c8c880e /synapse/storage | |
parent | User.is_mine is no longer a thing. Use hs.is_mine instead. (diff) | |
download | synapse-f280929a12314cfdb680881e2458bb047b7346ce.tar.xz |
Use frozenutils
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/__init__.py | 3 |
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, |