Questions about the handling of JIDs, resources and RosterItems
From: Vincent Thomasset <vincent.thomasset@xxxxxxxxx>
Date: Wed, 22 Mar 2006 17:01:50 +0100
Hi,

I have a problem with the new MessageSession interface, let me explain:

When my client connects, i create a list (a map actually) to keep track
of JIDs. Unfortunaly, i only seem to be able to get the bare JIDs from
the roster as the resource list seems to be always empty.

i do something like

void MyClass::roster (const RosterListener::Roster &roster)
{
        RosterItem *ri;
        RosterListener::Roster::const_iterator  it  = roster.begin(),
                                                end = roster.end();
        for (; it != end; ++it) {
                ri = it->second;
                add_buddy_entry (ri->jid(), ri->name());
        }
}

So when i initiate a MessageSession, i only have a bare jid, and when
someone IMs me, gloox creates another session using the full jid, as it
didn't find it.

So, my question is: what am i doing wrong ? / what is the proper way to
get and use the full JIDs ?


Cheers,
Vicnent



-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx