Re: Handling subscription requests
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Fri, 08 Sep 2006 12:55:17 +0200
On Friday September 8 2006 12:32, Salvatore Iovene wrote:
> On Fri, Sep 08, 2006 at 11:42:23AM +0200, Jakob Schroeter wrote:
> > On Friday September 8 2006 11:19, Salvatore Iovene wrote:
> > > <presence from='salvatore.iovene@xxxxxxxxxx' to='siovene@xxxxxxxxxx'
> > > type='subscribed'/>
> >
> > Does RosterListener::itemSubscribed() get called when you receive this
> > stanza?
>
> Nope.
>
> > Do you receive it each time you log in?
>
> I have just modified gloox as you said, and I didn't receive that
> stanza, now. I'm gonna try again without these modifications, tho.
>
> > If the latter is true, the server might expect a reply before considering
> > the subscription fully mutual. Unfortunately, the respective code is
> > commented out in gloox due to a severe bug in jabberd2 that causes an
> > endless loop of such stanzas going back and forth.
> > Could you try to un-comment the two code blocks in rostermanager.cpp,
> > starting at lines 290 and 316, respectively?
>
> I don't know if this modification is responsible of not getting that
> stanza anymore, but my client won't receive presence from it's contacts
> anyway. :(

It's probably not.
Well, without any presence stanzas from the server there is no way gloox could 
know a buddy is online. Did you try with a different server/account?

Jakob

Attachment: pgptn1eBPFoWZ.pgp
Description: PGP signature

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