def cross_domain?(*jids)
      !jids.flatten.index do |jid|
        !vhost(jid.domain).cross_domain_messages?
      end
    end
def cross_domain?(*jids)
      !jids.flatten.index do |jid|
        !vhost(jid.domain).cross_domain_messages?
      end
    end
Return true if all JIDs are allowed to exchange cross domain messages.