Skip to content

Commit

Permalink
Add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Mar 8, 2024
1 parent 1587ae7 commit c09887a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions synapse/rest/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,12 @@ async def encode_room(

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

Expand Down

0 comments on commit c09887a

Please sign in to comment.