TicTacToe - IQ error stanzas must have a child element
To conform with XMPP specifications (and Smacks enforcement of them) add an error condition to the IQ error response that's used to decline a game invitation.
@@ -274,6 +274,7 @@ public class TicTacToePlugin implements Plugin {
@Override
public void actionPerformed(ActionEvent e) {
invitation.setType(IQ.Type.error);
+ invitation.setError( StanzaError.getBuilder().setCondition(StanzaError.Condition.undefined_condition).setDescriptiveEnText("User declined your request."));
try
{
SparkManager.getConnection().sendStanza(invitation);
