Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6153 from matrix-org/erikj/fix_room_list_non_fede…
Browse files Browse the repository at this point in the history
…ratable

Fix not showing non-federatable rooms to remote room list queries
  • Loading branch information
erikjohnston authored Oct 2, 2019
2 parents 5d8ffdf + 5b9e5c2 commit 22a6ffd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6153.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve performance of the public room list directory.
3 changes: 3 additions & 0 deletions synapse/storage/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ def get_largest_public_rooms(

query_args += [last_joined_members, last_joined_members, last_room_id]

if ignore_non_federatable:
where_clauses.append("is_federatable")

if search_filter and search_filter.get("generic_search_term", None):
search_term = "%" + search_filter["generic_search_term"] + "%"

Expand Down

0 comments on commit 22a6ffd

Please sign in to comment.