0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-16 09:33:52 +01:00

Cleaner chunk logic

This commit is contained in:
Andrew Morgan 2019-02-26 12:22:34 +00:00
parent a712aa3a9c
commit c4414768af

View file

@ -330,11 +330,10 @@ class RoomListHandler(BaseHandler):
if not result:
return
if from_federation:
if "m.federate" in result and not result["m.federate"]:
# This is a room that other servers cannot join. Do not show them
# this room.
return
if from_federation and not result.get("m.federate", True):
# This is a room that other servers cannot join. Do not show them
# this room.
return
if _matches_room_entry(result, search_filter):
chunk.append(result)