[Standards] [XEP-0045 v. 1.23pre3] outsiders and 'broadcast' invitations

James Tomson jtomson at horizonwimba.com
Thu Oct 25 15:06:02 CDT 2007


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='hag66 at shakespeare.lit''
>                     to='darkcave at macbeth.shakespeare.lit'
>                     type='groupchat'>
>    <x xmlns='http://jabber.org/protocol/muc#user'>
>      <decline to='crone1 at shakespeare.lit'/>
>    </x>
> </message>
> --
>
> (not shown - decline message from darkcave to firstwitch)
>
> secondwitch receives:
> --
> <message from='darkcave at sharespeare.lit'
>                     to='wiccarocks at shakespeare.lit/laptop'
>                     type='groupchat'>
>   <x xmlns='http://jabber.org/protocol/muc#user'>
>     <item affiliation='none'
>                jid='hag66 at shakespeare.lit'/pda'
>                role='outsider'/>
>     <decline to='crone1 at shakespeare.lit'/>
>   </x>
> </message>
> --

should be:

[...]

secondwitch receives:
--
<message from='darkcave at shakespeare.lit'
                     to='wiccarocks at shakespeare.lit/laptop'
                     type='groupchat'>
   <x xmlns='http://jabber.org/protocol/muc#user'>
     <item nick='firstwitch'
                jid='crone1 at shakespeare.lit/desktop'
                role='moderator'
                affiliation='owner'/>
     <decline from='hagg66 at shakespeare.lit/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



More information about the Standards mailing list