def METHOD_NAME(world, room, update_fields, old_data, by_user):
    room.save(update_fields=update_fields)
    new = RoomConfigSerializer(room).data
    AuditLog.objects.create(
        world_id=world.id,
        user=by_user,
        type="world.room.updated",
        data={
            "object": str(room.id),
            "old": old_data,
            "new": new,
        },
    )
    if "chat.native" in {m["type"] for m in room.module_config}:
        Channel.objects.get_or_create(world_id=world.pk, room=room)
    return new