powered by Jive Software

Smack 4.0.2 Bug report involving OfflineMessageManager.getMessages()

This method always return empty instance of List. I debugged few lines of the method, then found that it will be ok if only get the two lines

"connection.createPacketCollectorAndSend(request).nextResultOrThrow();

PacketCollector messageCollector = connection.createPacketCollector(packetFilter);"

to

"PacketCollector messageCollector = connection.createPacketCollector(packetFilter);

connection.createPacketCollectorAndSend(request).nextResultOrThrow();"

Means just get these two lines reversed, offline messages will be returned.

Thanks for reporting SMACK-592

Fixed in 4.0.3-SNAPSHOT which is deployed to sonatype and available as aSmack snapshot.