Check if the "Delivered" message exists in the global queue and delete if found.

def handle_delivered(
        chain_state: ChainState,
        state_change: ReceiveDelivered,
) -> TransitionResult[ChainState]:
    """ Check if the "Delivered" message exists in the global queue and delete if found."""
    queueid = QueueIdentifier(state_change.sender, CHANNEL_IDENTIFIER_GLOBAL_QUEUE)
    inplace_delete_message_queue(chain_state, state_change, queueid)
    return TransitionResult(chain_state, [])