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