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

Result may be None

This commit is contained in:
Andrew Morgan 2019-02-26 11:27:19 +00:00
parent 71669a0fba
commit 6946c20111

View file

@ -329,7 +329,7 @@ class RoomListHandler(BaseHandler):
result = yield self.generate_room_entry(room_id, num_joined_users) result = yield self.generate_room_entry(room_id, num_joined_users)
if from_federation and not self.config.allow_non_federated_in_public_rooms: if from_federation and not self.config.allow_non_federated_in_public_rooms:
if result["m.federate"] is False: if not result or result["m.federate"] is False:
# This is a non-federating room and the config has chosen not # This is a non-federating room and the config has chosen not
# to show these rooms to other servers # to show these rooms to other servers
return return