so looking back on this, it seems it's not necessary to have an
'outsider' item in the broadcast of the decline to the room occupants
- I was neglecting the fact that the <decline to=..../> from the
invitee, when received by the room and forwarded to the inviter,
becomes <decline from=.../>.
To stay consistent with normal non-broadcast invitation/declines, it
might be better to stick with this, so what was:
thirdwitch sends decline:
--
<message from='[EMAIL PROTECTED]''
to='[EMAIL PROTECTED]'
type='groupchat'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<decline to='[EMAIL PROTECTED]'/>
</x>
</message>
--
(not shown - decline message from darkcave to firstwitch)
secondwitch receives:
--
<message from='[EMAIL PROTECTED]'
to='[EMAIL PROTECTED]/laptop'
type='groupchat'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='none'
jid='[EMAIL PROTECTED]'/pda'
role='outsider'/>
<decline to='[EMAIL PROTECTED]'/>
</x>
</message>
--
should be:
[...]
secondwitch receives:
--
<message from='[EMAIL PROTECTED]'
to='[EMAIL PROTECTED]/laptop'
type='groupchat'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item nick='firstwitch'
jid='[EMAIL PROTECTED]/desktop'
role='moderator'
affiliation='owner'/>
<decline from='[EMAIL PROTECTED]/pda'/>
</x>
</message>
--
since this message is coming from the room itself, and not
firstwitch's room jid, we need an item representing the initial
inviter (and not the invitee, that's clear in the decline's from
attr) to give other occupants context for the decline.
-James
----------
james at wimba dot com