Skip to content

Commit

Permalink
Only check joined rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Oct 4, 2024
1 parent 3cf9e65 commit 50bc18b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion synapse/handlers/sliding_sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,13 @@ async def handle_room(room_id: str) -> None:
if from_token:
# The set of rooms that the client (may) care about, but aren't
# in any list range (or subscribed to).
missing_rooms = all_rooms - relevant_room_map.keys()
missing_rooms = {
room_id
for room_id in all_rooms - relevant_room_map.keys()
# We only care about updates to *joined* rooms
if room_membership_for_user_map[room_id].membership
== Membership.JOIN
}

# We now just go and try fetching any events in the above rooms
# to see if anything has happened since the `from_token`.
Expand Down

0 comments on commit 50bc18b

Please sign in to comment.