support direct invitation (XEP-0249). Fixes #7581