Re: Question on Handling-Unsubscribe
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Tue, 10 Jul 2007 23:56:11 +0200 (CEST)
On Wed Jul 4 2007, Hagit Yidov wrote:
> Hello
>
>
>
> I have recently begun using Gloox.
>
>
>
> I have a requirement where I need to notify a user when someone has
> rejected his subscription request.
>
> To do this I can use:
>
> void IMGlooxAdapter::handleItemUnsubscribed( const JID& jid )
>
>
>
> The problem is that this event will also occur in the case where the
> user deletes a contact from his list.
>
> How can I distinguish between these to cases?

I'm afraid you can't. Both events look the same on protocol level, i.e. both 
are:

<presence to='...' type='unsubscribed'/>


cheers,
Jakob

Attachment: pgpxr4NavFcrx.pgp
Description: PGP signature