From 8c8f1e782d09ad665046d24b1d5b19c4fc0275b1 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 10 Jul 2024 16:28:49 +0100 Subject: FIXUP --- synapse/handlers/sliding_sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'synapse/handlers/sliding_sync.py') diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py index a0493d33db..eff67ef1b8 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py @@ -1044,7 +1044,9 @@ class SlidingSyncHandler: # https://github.com/matrix-org/matrix-spec-proposals/pull/3575#discussion_r1653045932 last_activity_in_room_map[room_id] = room_for_user.event_pos.stream - for room_id, stream_pos in await self.store.rough_get_last_pos(to_fetch): + for room_id, stream_pos in ( + await self.store.rough_get_last_pos(to_fetch) + ).items(): if stream_pos is not None: last_activity_in_room_map[room_id] = stream_pos -- cgit 1.5.1