User A subscribes to me. Below is the code I use to reject the subscription.
Presence l_presence = new Presence(Presence.Type.UNSUBSCRIBE);
l_presence.setTo(p_strContact + “@” + HOST);
g_xmppConn.sendPacket(l_presence);
If user A is login, then I can reject the subscription. However, if the user is not login, above code does not raise any exception, and
the subscription still there.
How do I really reject the subscription even if user A is not login ?