diff options
author | Erik Johnston <erik@matrix.org> | 2024-07-10 15:32:39 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2024-07-10 15:32:39 +0100 |
commit | 9700d7d791a93d42108d7613082e4a5ef71ac922 (patch) | |
tree | d294399eeb4a74ac46bba53d232a74383d3eb76b /synapse | |
parent | Fixup (diff) | |
download | synapse-9700d7d791a93d42108d7613082e4a5ef71ac922.tar.xz |
Fixup
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/sliding_sync.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py index 0fb7e05b5d..4d56ba7b26 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py @@ -1014,15 +1014,6 @@ class SlidingSyncHandler: self.store._events_stream_cache._entity_to_key - # XXX: FIXUP - last_activity_in_room_map = await self.store.rough_get_last_pos( - [ - room_id - for room_id, room_for_user in sync_room_map.items() - if room_for_user.membership == Membership.JOIN - ] - ) - last_activity_in_room_map = {} to_fetch = [] for room_id, room_for_user in sync_room_map.items(): @@ -1031,7 +1022,7 @@ class SlidingSyncHandler: if stream_pos is not None: last_activity_in_room_map[room_id] = stream_pos else: - to_fetch.ap(room_id) + to_fetch.append(room_id) else: last_activity_in_room_map[room_id] = room_for_user.event_pos.stream |