Ok, I’'ve tried using setFilteredOnThreadID(false) to no avail. I suspect this is a problem with newest Java rev. Is there a test suite available for download so I can verify this?
Thanks!
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.packet.*;
public class Mita {
public static void main(String[] args) throws Exception {
try {
XMPPConnection con = new XMPPConnection(“jabber.mydomain.com”);
con.login(“userid”, “password”);
Chat chat = con.createChat("mybuddy@jabber.mydomain.com");
chat.sendMessage(“hi!”);
chat.setFilteredOnThreadID(false);
while(true) {
Message reply = chat.nextMessage(1000);
if (reply != null) {
// this never gets called
chat.sendMessage("you said " + reply.getBody());
}
}
}
catch (Exception e) {
e.printStackTrace();
}
}
}
/code