I have this piece of code:
connection = new XMPPConnection(host);
connection.login(user, password, resource);
When I send a subscription request, I get a Presence packet, for which I just print out something and ignore it (since I’'m still testing this).
When I then reconnect, the request is immediately authorized, before the subscription mode is set.
How can I change this?