[jdev] Best practices regarding roster management by clients ?
stpeter at jabber.org
Thu Sep 8 12:05:59 CDT 2005
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.
Jabber Software Foundation
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3511 bytes
Desc: S/MIME Cryptographic Signature
More information about the JDev