summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-01-25 16:44:39 -0500
committerDavid Robertson <davidr@element.io>2023-01-26 10:43:53 +0000
commit528183bb55ff1f6a7c816d930196f3f1a82d3a60 (patch)
tree911ade0e39d478da37b8118a285fe33e7a8754f1
parentFix typo. (diff)
downloadsynapse-528183bb55ff1f6a7c816d930196f3f1a82d3a60.tar.xz
Apply suggestions from code review
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
-rw-r--r--changelog.d/14917.misc2
-rw-r--r--synapse/handlers/sync.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/changelog.d/14917.misc b/changelog.d/14917.misc
index 8a248495b2..4d1dd2639a 100644
--- a/changelog.d/14917.misc
+++ b/changelog.d/14917.misc
@@ -1 +1 @@
-Improve performance of looking up partial-state status.
+Faster joins: Improve performance of looking up partial-state status of rooms.
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 32f4ed228a..6095513277 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -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