diff options
author | Šimon Brandner <simon.bra.ag@gmail.com> | 2022-07-27 20:46:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 19:46:57 +0100 |
commit | 583f22780f44157c50bc2dc5c242e88cc18c7886 (patch) | |
tree | b48ad8ab4ddc45862b22baa8e6440e8d33b4c267 /synapse/storage/databases/main | |
parent | Add missing type hints for tests.unittest. (#13397) (diff) | |
download | synapse-583f22780f44157c50bc2dc5c242e88cc18c7886.tar.xz |
Use stable prefixes for MSC3827: filtering of `/publicRooms` by room type (#13370)
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Diffstat (limited to 'synapse/storage/databases/main')
-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 d6d485507b..0f1f0d11ea 100644 --- a/synapse/storage/databases/main/room.py +++ b/synapse/storage/databases/main/room.py @@ -207,7 +207,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore): def _construct_room_type_where_clause( self, room_types: Union[List[Union[str, None]], None] ) -> Tuple[Union[str, None], List[str]]: - if not room_types or not self.config.experimental.msc3827_enabled: + if not room_types: return None, [] else: # We use None when we want get rooms without a type |