powered by Jive Software

SparkWeb not triggering InvitationRejectionListener from Smack library

Hello,

I did not really know where to post that as it both concerns SparkWeb and Smack, but declining an invitation from the SparkWeb client does not trigger the following code:

MultiUserChat muc = new MultiUserChat(connection, “test@conference.domain”);

muc.create(“Test”);

muc.addInvitationRejectionListener(new InvitationRejectionListener() {

public void invitationDeclined(String invitee, String reason) {

  System.out.println("FOO");

}

}
muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

muc.invite(“user@domain”, “BAR”);

(code shortened for readability)

Whereas Spark does.

I’m going to link this post in the Smack library section.

Thanks for having a look at it.

Cheers