I recently upgraded to Smack 3.0.4 (I know I should have done it earlier! ) and openfire to 3.4.2.
After creating the XMPPConnection object I do addPacketListner to listen to Presence.class , Message.class packetypes.
I do this by doing the following:
conn.addPacketListener(listener, new PacketTypeFilter (Presence.class));
conn.addPacketListener(listener, new PacketTypeFilter (Message.class));
After doing this, whatever I add LAST is used for packetfiltering. Meaning, in the above case only Message packets will be handled by the listener.
I am not able to add both Presence.class and Message.class in the conn object to be handled by listener.
What should be the expected behavior ? Am I missing something?
PS: (I was able to add both Presence.class and Message.class as packetfilter with earlier version of smack)