-
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> ```✎ -
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> ``` ✏
-
Zash
I would have gone for unavailable
-
Zash
Looks like Prosody used to send it in `<presence type="unavailable"/>`
-
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?✎ -
Zash
type=error without <error> seems weird
-
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? ✏
-
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? ✏
-
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(); ```
-
nicoco
oh, affiliation and role none are required?
-
Zash
That's how you say "you're kicked" and then the status code is why
-
Zash
Hm, do you see any example of only a <status> ?
-
Zash
https://xmpp.org/extensions/xep-0045.html#example-171 but then it's a message
-
nicoco
ha, the "you were kicked" part was probably what I missed indeed, thanks
-
nicoco
thanks a lot!
-
Zash
np :)
-
Zash
Seems there's no text about this in XEP-0045, just the registry entry. Feel free to PR suggested text?
-
nicoco
Zash: sth like 6(Entity Use Cases).8 - MUC Service shuts down?
-
Zash
nicoco, under https://xmpp.org/extensions/xep-0045.html#service seems natural?
-
nicoco
right. section 11. didn't go this far yet :-)
-
Zash
I scrolled trough the table of contents :)