Apply suggestions from code review

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
This commit is contained in:
Patrick Cloke 2023-01-25 16:44:39 -05:00 committed by David Robertson
parent 9f4a5c1048
commit 528183bb55
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
Improve performance of looking up partial-state status.
Faster joins: Improve performance of looking up partial-state status of rooms.

View file

@ -1408,7 +1408,7 @@ class SyncHandler:
forced_newly_joined_room_ids.update(
room_id
for room_id, is_partial_state in results.items()
if is_partial_state
if not is_partial_state
)
# Now we have our list of joined room IDs, exclude as configured and freeze