[jdev] Best practices regarding roster management by clients ?

Lucas Nussbaum lucas at lucas-nussbaum.net
Fri Sep 9 01:56:51 CDT 2005


On 08/09/05 at 11:05 -0600, Peter Saint-Andre wrote:
> Lucas Nussbaum wrote:
> 
> >(A) Should a client display contacts with subscription=none or
> >subscription=from (and not ask=subscribe) ? You obviously don't care
> >about those contacts, and they will never send you any presence, so why
> >lose space in your contact list ?
> 
> Many clients display "from" contacts as "observers", either in a 
> separate group or with a special icon. I haven't seen any clients that 
> display "none" contacts but I haven't tried every client out there, either.
> 
> >(B) How should clients handle the removal of contacts ? I think that :
> >
> >- if sub=both, a presence type=unsubscribe should be sent so
> >  subscription becomes from (the fact that you are no longer interested
> >  in somebody's presence doesn't mean the other party doesn't want to
> >  see your presence anymore). Additionally, the client should ask the
> >  user whether he wants to forbid the other party from seeing the user
> >  presence (and then send presence with type=unsubscribed)
> >
> >- if sub=to, sub=from or sub=none, there's no problem.
> 
> If you do a roster remove (RFC 3921, Section 8.6), the server handles 
> the presence stuff for you.

Yes, but then, the server sends an unsubscribed too.
-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |



More information about the JDev mailing list