mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 11:43:51 +01:00
Cleaner chunk logic
This commit is contained in:
parent
a712aa3a9c
commit
c4414768af
1 changed files with 4 additions and 5 deletions
|
@ -330,11 +330,10 @@ class RoomListHandler(BaseHandler):
|
||||||
if not result:
|
if not result:
|
||||||
return
|
return
|
||||||
|
|
||||||
if from_federation:
|
if from_federation and not result.get("m.federate", True):
|
||||||
if "m.federate" in result and not result["m.federate"]:
|
# This is a room that other servers cannot join. Do not show them
|
||||||
# This is a room that other servers cannot join. Do not show them
|
# this room.
|
||||||
# this room.
|
return
|
||||||
return
|
|
||||||
|
|
||||||
if _matches_room_entry(result, search_filter):
|
if _matches_room_entry(result, search_filter):
|
||||||
chunk.append(result)
|
chunk.append(result)
|
||||||
|
|
Loading…
Reference in a new issue