mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-26 22:05:21 -04:00
Use stable prefixes for MSC3827: filtering of /publicRooms
by room type (#13370)
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
922b771337
commit
583f22780f
7 changed files with 8 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue