Fix call to old method name

pull/8292/head
Andrew Morgan 2020-09-14 16:25:31 +01:00
parent 0f4c1bba35
commit 3bde820620
1 changed files with 2 additions and 2 deletions

View File

@ -457,8 +457,8 @@ class DirectoryHandler(BaseHandler):
# Check if publishing is blocked by a third party module
allowed_by_third_party_rules = await (
self.third_party_event_rules.check_room_can_be_added_to_public_rooms_directory(
room_id
self.third_party_event_rules.check_visibility_can_be_modified(
room_id, visibility
)
)
if not allowed_by_third_party_rules: