powered by Jive Software

Bug with smack api

Morning! I’m using smack 3.1

I have a class that implements PacketListener. When I create a MultiUserChat, I add this class as both the MessageListener and the ParticipantListener. This causes a problem in the addPacketListener method in the PacketReader class because the listeners map is using the packetListener as the key. So, when I add the second listener, it overwrites the first. Perhaps a list would work instead of a map?

Thanks a bunch guys!

The Ben