jdev - 2022-11-30


  1. nicoco

    hi all! when a muc-capable component shutdowns, it should send a presence with status code 332. should this presence be of type "error" or "unavailable"? does the presence below look OK? it does not seem to trigger anything in the UI of gajim and movim, so I guess it must be wrong somehow? ```xml <presence type="error" to="participant@example.com/resource" from="room@conference.example.com"> <x xmlns="http://jabber.org/protocol/muc#user"> <status code="332" /> </x></presence> ```

  2. nicoco

    hi all! when a muc-capable component shuts down, it should send a presence with status code 332. should this presence be of type "error" or "unavailable"? does the presence below look OK? it does not seem to trigger anything in the UI of gajim and movim, so I guess it must be wrong somehow? ```xml <presence type="error" to="participant@example.com/resource" from="room@conference.example.com"> <x xmlns="http://jabber.org/protocol/muc#user"> <status code="332" /> </x></presence> ```

  3. Zash

    I would have gone for unavailable

  4. Zash

    Looks like Prosody used to send it in `<presence type="unavailable"/>`

  5. nicoco

    thanks! it was my first attempt, but then I tried error. so the presence looks and neither gajim nor movim are actually handling it?

  6. Zash

    type=error without <error> seems weird

  7. nicoco

    thanks! unavailable was my first attempt, but then I tried error. so the presence looks and neither gajim nor movim are actually handling it?

  8. nicoco

    thanks! unavailable was my first attempt, but then I tried error. so the presence looks OK and neither gajim nor movim are actually handling it?

  9. Zash

    ```lua local stanza = st.presence({type = "unavailable"}) :tag("x", {xmlns = "http://jabber.org/protocol/muc#user"}) :tag("item", { affiliation='none', role='none' }):up() :tag("status", { code = "332"}):up(); ```

  10. nicoco

    oh, affiliation and role none are required?

  11. Zash

    That's how you say "you're kicked" and then the status code is why

  12. Zash

    Hm, do you see any example of only a <status> ?

  13. Zash

    https://xmpp.org/extensions/xep-0045.html#example-171 but then it's a message

  14. nicoco

    ha, the "you were kicked" part was probably what I missed indeed, thanks

  15. nicoco

    thanks a lot!

  16. Zash

    np :)

  17. Zash

    Seems there's no text about this in XEP-0045, just the registry entry. Feel free to PR suggested text?

  18. nicoco

    Zash: sth like 6(Entity Use Cases).8 - MUC Service shuts down?

  19. Zash

    nicoco, under https://xmpp.org/extensions/xep-0045.html#service seems natural?

  20. nicoco

    right. section 11. didn't go this far yet :-)

  21. Zash

    I scrolled trough the table of contents :)