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

Michael McCarthy michaelcmccarthy at me.com
Fri Feb 25 03:49:59 CST 2011

Thanks Kevin. We do control both clients, and we actually do a similar thing with roster invites (the other client listens and auto accepts the "to" subscription). Presumably the to for that IQ would be their room JID, i.e jdev at jabber.org/Kevin which is available to you? 

On 25 Feb, 2011,at 09:20 AM, 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20110225/f26d398c/attachment.htm>

More information about the JDev mailing list