[jdev] Adding a roster contact in a MUC room where JIDs are not broadcast

Waqas Hussain waqas20 at gmail.com
Fri Feb 25 10:02:22 CST 2011


On Fri, Feb 25, 2011 at 2:20 PM, Kevin Smith <kevin at kismith.co.uk> wrote:
> On Fri, Feb 25, 2011 at 9:17 AM, Michael McCarthy
> <michaelcmccarthy at me.com> wrote:
>> Sorry, I wasn't very explicit there, my mistake. This is within the context
>> of an application we've written where users probably aren't aware they are
>> using XMPP or what a JID is. But I like the pragmatism of the approach below
>> : )
>
> If you control the clients at both ends, you can have them respond to
> e.g. <iq to=...><whatsyourjid xmlns="..."/></iq> and do the user-less
> equivalent to Peter's suggestion. Understanding whatever privacy
> issues this brings to your application.
>
> /K

An XEP which fits here is XEP-0144: Roster Item Exchange, which allows
suggesting roster entries. It also lets the initiator send their JID
first in a message, which avoids a roundtrip or two, and also allows
fallback to a text message. I have a vague recollection of some
clients actually implementing this.

--
Waqas Hussain


More information about the JDev mailing list