async def broadcast_avatar_state(room_channel_name, channel_name, json_data):
    "\n    Sends the new avatar's state to the users of the room.\n    "
    type = json_data['type']
    payload = json_data['payload']
    state = payload['value']
    participant = (await sync_to_async(get_participant)(room_channel_name, channel_name))
    participant_id = (await sync_to_async(get_participant_id)(participant))
    (await channel_layer.group_send(room_channel_name, {'type': humps.decamelize(type), 'payload': {'participant_id': participant_id, 'state': state}}))
Sends the new avatar's state to the users of the room.
async def broadcast_avatar_state(room_channel_name, channel_name, json_data):
    "\n    \n    "
    type = json_data['type']
    payload = json_data['payload']
    state = payload['value']
    participant = (await sync_to_async(get_participant)(room_channel_name, channel_name))
    participant_id = (await sync_to_async(get_participant_id)(participant))
    (await channel_layer.group_send(room_channel_name, {'type': humps.decamelize(type), 'payload': {'participant_id': participant_id, 'state': state}}))