'Add or remove a room from the appservice/network specific public
room list.
Args:
appservice_id (str): ID of the appservice that owns the list
network_id (str): The ID of the network the list is associated with
room_id (str)
visibility (str): either "public" or "private"'

@defer.inlineCallbacks
def edit_published_appservice_room_list(self, appservice_id, network_id, room_id, visibility):

    if (visibility not in ['public', 'private']):
        raise SynapseError(400, 'Invalid    visibility    setting')
    (yield self.store.set_room_is_public_appservice(room_id, appservice_id, network_id, (visibility == 'public')))
