summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2023-05-31 16:01:53 +0200
committerMathieu Velten <mathieuv@matrix.org>2023-05-31 16:03:57 +0200
commit86ca31e705d3a4735063ce4f203b10b2ed94344f (patch)
treec4e37d9bb2e18b1dec2d5c0d33fa15eafbb2840c /synapse/storage
parentSimplify code (diff)
downloadsynapse-86ca31e705d3a4735063ce4f203b10b2ed94344f.tar.xz
Improvments
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/databases/main/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/room.py b/synapse/storage/databases/main/room.py
index 932293ef2e..80bf35201a 100644
--- a/synapse/storage/databases/main/room.py
+++ b/synapse/storage/databases/main/room.py
@@ -428,7 +428,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore):
             query_args += [last_joined_members]
 
             if last_room_id is not None:
-                clause += f" AND (joined_members {comp} ? OR room_id {comp} ?)"
+                clause += f" OR (joined_members == ? AND room_id {comp} ?)"
                 query_args += [last_joined_members, last_room_id]
 
             where_clauses.append(clause)