mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-13 18:30:44 -05:00
Use frozenutils
This commit is contained in:
parent
009e4b5637
commit
f280929a12
2 changed files with 5 additions and 34 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue