Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix missing await on event serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jan 29, 2024
1 parent 27b10c7 commit 896025b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions synapse/rest/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,15 @@ async def encode_room(

if room.preview:
if "event" in room.preview:
room.preview["event"] = self._event_serializer.serialize_events(
room.preview[
"event"
] = await self._event_serializer.serialize_events(
[room.preview["event"]],
time_now,
config=serialize_options,
)[0]
)[
0
]
result["com.beeper.inbox.preview"] = room.preview

return result
Expand Down

0 comments on commit 896025b

Please sign in to comment.