diff --git a/synapse/handlers/space_summary.py b/synapse/handlers/space_summary.py index adde3e5d4426..a8ec9993b627 100644 --- a/synapse/handlers/space_summary.py +++ b/synapse/handlers/space_summary.py @@ -25,7 +25,6 @@ HistoryVisibility, Membership, ) -from synapse.api.errors import NotFoundError from synapse.events import EventBase from synapse.events.utils import format_event_for_client_v2 from synapse.types import JsonDict @@ -149,7 +148,7 @@ async def get_space_summary( for room in fed_rooms: # Pull whether it is world readable from the returned information # since we may not have the state of this room. - include_room = room.get("world_readable") == True + include_room = room.get("world_readable") is True fed_room_id = room.get("room_id") if not include_room and fed_room_id: