diff options
author | Mathieu Velten <mathieuv@matrix.org> | 2023-05-31 16:01:53 +0200 |
---|---|---|
committer | Mathieu Velten <mathieuv@matrix.org> | 2023-05-31 16:03:57 +0200 |
commit | 86ca31e705d3a4735063ce4f203b10b2ed94344f (patch) | |
tree | c4e37d9bb2e18b1dec2d5c0d33fa15eafbb2840c /synapse/storage | |
parent | Simplify code (diff) | |
download | synapse-86ca31e705d3a4735063ce4f203b10b2ed94344f.tar.xz |
Improvments
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/databases/main/room.py | 2 |
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) |