jdev - 2022-08-27


  1. e-snail

    I'm trying to understand how responding to MUC invites works in slixmpp. When I set up an echo bot from the example and send it a MUC invite from Conversations, the log says the stanza triggers the `message` event, but shouldn't it trigger a `groupchat_invite` event? What am I missing?

  2. e-snail

    b

  3. e-snail

    .

  4. lovetox

    Is there such a thing in slix ?

  5. nicoco_

    yes there is and looking at the docs/sources [1], i think slix should trigger both a "message" event (which is very generic and triggered even if the message has no body) and "groupchat_direct_invite" event. e-snail, did you "register" the slixmpp plugin, eg `xmpp.register_plugin('xep_0249')`? [1] https://slixmpp.readthedocs.io/en/latest/_modules/slixmpp/plugins/xep_0249/invite.html#XEP_0249

  6. lovetox

    but this is only a direct invite

  7. lovetox

    there are also mediated invites

  8. nicoco_

    you're right, lovetox. I think mediated invites should trigger `groupchat_invite` event then, indeed, see `def _handle_groupchat_invite` in https://slixmpp.readthedocs.io/en/latest/_modules/slixmpp/plugins/xep_0045/muc.html#XEP_0045

  9. nicoco_

    you're right, lovetox. I think mediated invites should trigger the `groupchat_invite` event then, indeed, see `def _handle_groupchat_invite` in https://slixmpp.readthedocs.io/en/latest/_modules/slixmpp/plugins/xep_0045/muc.html#XEP_0045