From e21b48cd3a8233ae4e8dc6474636cf2524659bf2 Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Fri, 8 Mar 2024 18:52:18 +0000 Subject: [PATCH] Add missing await --- synapse/rest/client/sync.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py index 555c3ef8a6..ce190cfc5a 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py @@ -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